ufs2arco.sources.GFSArchive.open_grib#
- GFSArchive.open_grib(dims, file_suffix, cache_dir, **kwargs) Dataset#
Open a single GRIB file.
- Parameters:
dims (dict) – e.g. {“t0”: “2020-01-01T00”, “fhr”: 0}
file_suffix (str) – e.g. “a”, “b”, “prs”, etc
cache_dir (str) – path to caching the grib file
kwargs – passed to xarray.open_dataset
- Returns:
xr.Dataset – with the contents of the grib file, after some minimal postprocessing