我正尝试使用pygrib,提取值时发生错误。
grbs = pygrib.open('akw.t00z.grib.grib2')
print(grb)
a = grb.values
输出如下所示。打印第一条消息,但无法提取值。
我想这是由于eccodes安装造成的。
1:Wind speed:m s**-1 (instant):regular_ll:surface:level 0:fcst time 0 hrs:from 201905280000
ECCODES ERROR: JPEG support not enabled.
Traceback (most recent call last):
File "test_grb2.py", line 21, in <module>
a = grb.values
File "pygrib.pyx", line 843, in pygrib.gribmessage.__getattr__
File "pygrib.pyx", line 1259, in pygrib.gribmessage.__getitem__
RuntimeError: b'Function not yet implemented'