Herbie icon indicating copy to clipboard operation
Herbie copied to clipboard

cfgrib can't read the RAP wrfprs files because gridType is not included in file

Open blaylockbk opened this issue 2 years ago • 1 comments

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?

blaylockbk avatar Sep 29 '21 20:09 blaylockbk

Probably can't do anything about this.

blaylockbk avatar Jul 17 '22 02:07 blaylockbk