...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
import xarray as xr ds = xr.open_dataset("glofas_historical_201901.grib",engine="cfgrib",backend_kwargs={'time_dims':['time']}) |
Read GRIB GloFAS historical datasets with multiple product types:
GloFAS historical has 2 product types, consolidated and intermediate, that you could download together in a GRIB file.
In order to open the file you need to specify the experimentVersionNumber in the backend_kwargs:
consolidated: '0001'
intermediate: '0005'
Code Block | ||||
---|---|---|---|---|
| ||||
import xarray as xr
ds = xr.open_dataset('glofas.grib', engine='cfgrib',
... backend_kwargs={'read_keys': {'experimentVersionNumber':'0001'}})
|
Read GRIB file that has multiple product types:
...