[Report bugs] The bug in read/convert data from grb2 to nc through Xarray-python #6643
Unanswered
ruhuihuang
asked this question in
Q&A
Replies: 1 comment
-
You may be seeing ecmwf/cfgrib#245 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there:
This bug occurs when there is no variable name and multiple variables are mixed together in file of grb format.
Then if you use
data = xr.open_dataset( 'filename.grb2',engine='cfgrib', backend_kwargs={'filter_by_keys': {'typeOfLevel': '.......'}})
or other kind of codes of Xarray to read grb2 data or to convert grb2 data to nc data, although Xarray can read/convert it, you will get incorrect data.You can have a try using the data from to have a try, also for convenience you can use the data in the attachment to have a try.
On the other hand, even you use
data=pygrib.open('filename.grb2')
, then you will find it hard to get anything you want since it has no name.Best regards
Ruhui Huang
Xiamen University
ruhui@stu.xmu.edu.cn
Attachment:
temp.1955.grb2.zip
Beta Was this translation helpful? Give feedback.
All reactions