Herbie
Herbie copied to clipboard
cfgrib can't read the RAP wrfprs files because gridType is not included in file
When I try to open the full-grid RAP files, like wrfprs
from herbie.archive import Herbie
H = Herbie('2021-7-23 00:00', model='rap', product='wrfprs')
ds = H.xarray('TMP:2 m')
cfgrib throws an an error...
KeyError: 'gridType'
There must be a key missing from the RAP prs files that cfgrib is trying to read. How can Herbie handle this error?
- Herbie needs to tell cfgrib to not read the gridType key.
- Can Herbie determine the grid_projection from other details?
Probably can't do anything about this.