You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm coming from using pygrib where there was a .projparams dictionary of (mostly) PROJ.4 compatible projection parameters. Does anything like this exist with cfgrib? If not, is it planned? Desired?
Xarray currently supports reading in rasterio files where it sets a "crs" attribute in the DataArray/Dataset. There has also been discussion by me and a couple others to find the best way to make a "crs" coordinate that is more useful.
For cfgrib though, I'd like to at least get access to some of the projection parameters as-is in the grib file, but initial checks by @katherinekolman with the NCEP files we want to read make it look like some are missing.
Any help is much appreciated.
The text was updated successfully, but these errors were encountered:
I am also having problems to obtain projparams using xarray. In pygrib, for instance, we can access parameters by doing grb = grbs.select(name='10 metre U wind component')[0] grb.projparams
Is there something similar for cfgrib? What is the read_keys for that?
I don't know if you're still having problems with this, but in order to select particular parameters, use filter_by_keys and to add the projection parameter, use read_keys as described on the main page: https://github.com/ecmwf/cfgrib with projString as the key to get.
I'm coming from using pygrib where there was a
.projparams
dictionary of (mostly) PROJ.4 compatible projection parameters. Does anything like this exist with cfgrib? If not, is it planned? Desired?Xarray currently supports reading in rasterio files where it sets a "crs" attribute in the DataArray/Dataset. There has also been discussion by me and a couple others to find the best way to make a "crs" coordinate that is more useful.
For
cfgrib
though, I'd like to at least get access to some of the projection parameters as-is in the grib file, but initial checks by @katherinekolman with the NCEP files we want to read make it look like some are missing.Any help is much appreciated.
The text was updated successfully, but these errors were encountered: