Add parse_cfgrib()
or other helper for interpretting cfgrib/eccodes's GRIB map projection attributes
#2473
Labels
parse_cfgrib()
or other helper for interpretting cfgrib/eccodes's GRIB map projection attributes
#2473
What should we add?
When reading in a GRIB file using
engine='cfgrib'
, we don't get xarray data structures conforming to CF with respect togrid_mapping
, instead, the variables have a list of attributes like the following:Given the prevalence of use of GRIB files and cfgrib to read them (based on user survey and number of comments on posts like #1004), I think this is one of our most common "non-compliant" data sources we'd at least have a hope of handling automatically. Whether this takes the form of a new accessor method (like
parse_cfgrib
orparse_special('cfgrib')
) or a separate helper inio
to use withinassign_crs
(i.e., a cfgrib to CF convention converter), I think this would be a good thing to include....that is, unless we can just get cfgrib to give CF compliant grid mappings in the first place? (UPDATE: there is an issue for this upstream: ecmwf/cfgrib#251, so yeah, that'd be the route to go)
Reference
No response
The text was updated successfully, but these errors were encountered: