pyremo.preproc.get_gcm_dataset
- get_gcm_dataset(ds, ref_ds=None, tos=None, attrs=None, use_cftime=True, invertlev=None, time_range=None)[source]
Creates a global dataset ready for preprocessing.
This function creates a homogenized global dataset. If necessary, units are converted and the sea surface temperature
tosis interpolated spatially and temporally to the atmospheric grid.- Parameters:
ds (
xarray.Datasetordictoffilenames) – Input dataset from a global model according to CF conventions.ref_ds (
xarray.Dataset) – Reference datasets that is used for determining the grid and vertical coordinates and the global attributes. Ifref_ds=None,tafrom the input dataset is used as a reference.attrs – Global attributes for the output dataset. If
attrs=None, the global attributes fromref_dsare used.
- Returns:
gfile (
xarray.Dataset) – Global dataset ready for preprocessing.