access_nri_intake.source.utils#
Shared utilities for writing Intake-ESM builders and their parsers
Exceptions#
Common base class for all non-exit exceptions. |
Functions#
|
Get start date, end date and frequency of a xarray dataset. Stolen and adapted from the |
Module Contents#
- exception access_nri_intake.source.utils.EmptyFileError#
Bases:
Exception
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- access_nri_intake.source.utils.get_timeinfo(ds, filename_frequency, time_dim)#
Get start date, end date and frequency of a xarray dataset. Stolen and adapted from the cosima cookbook, see COSIMA/cosima-cookbook
- Parameters:
- ds: :py:class:`xarray.Dataset`
The dataset to parse the time info from
- time_dim: str
The name of the time dimension