...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
import xarray as xr # Reading the Control reforecast (cf) data glofas_cf = xr.open_dataset("Glofas_forecastreforecast.grib", engine='cfgrib', backend_kwargs={'filter_by_keys': {'dataType': 'cf'}, 'indexpath':''}) # Reading the Ensemble perturbed reforecasts (pf) data glofas_pf = xr.open_dataset("Glofas_forecastreforecast.grib ", engine='cfgrib', backend_kwargs={'filter_by_keys': {'dataType': 'pf'}, 'indexpath':''}) # Reading the Historical Consolidated (0001) data consololidated = xr.open_dataset('glofas.grib', engine='cfgrib', backend_kwargs={'read_keys': {'experimentVersionNumber':'0001'}}) # Reading the Historical Intermediate (0005) data intermediate = xr.open_dataset('glofas.grib', engine='cfgrib', backend_kwargs={'read_keys': {'experimentVersionNumber':'0005'}}) |
...