Generate a single dataset which is the mean of the input datasets
An ensemble datasets combines input datasets assuming the all have similar shape, dimensions, and units.
Parameters: | datasets (list of dataset.Dataset) – Datasets to be used to compose the ensemble dataset from. All Datasets must be the same shape. |
---|---|
Returns: | New Dataset with a name of ‘Dataset Ensemble’ |
Return type: | dataset.Dataset |
Check missing values in observation and model datasets. If any of dataset in dataset_array has missing values at a grid point, the values at the grid point in all other datasets are masked. :param dataset_array: an array of OCW datasets
Normalize Dataset datetime values.
Force daily to an hour time value of 00:00:00. Force monthly data to the first of the month at midnight.
Parameters: |
|
---|---|
Returns: | A new Dataset with normalized datetime values. |
Return type: |
Safely subset given dataset with subregion information
A standard subset requires that the provided subregion be entirely contained within the datasets bounds. safe_subset returns the overlap of the subregion and dataset without returning an error.
Parameters: |
|
---|---|
Returns: | The subset-ed Dataset object |
Return type: |
Regrid a Dataset using the new latitudes and longitudes
Parameters: |
|
---|---|
Returns: | A new spatially regridded Dataset |
Return type: |
Subset given dataset(s) with subregion information
Parameters: |
|
---|---|
Returns: | The subset-ed Dataset object |
Return type: | |
Raises: | ValueError |
Convert temperature units as necessary
Automatically convert Celcius to Kelvin in the given dataset.
Parameters: | dataset – The dataset for which units should be updated. |
---|
:type dataset; dataset.Dataset
Returns: | The dataset with (potentially) updated units. |
---|---|
Return type: | dataset.Dataset |
Rebin a Dataset to a new temporal resolution
Parameters: |
|
---|---|
Returns: | A new temporally rebinned Dataset |
Return type: |
Temporally subset data given month_index.
Parameters: |
|
---|---|
Returns: | A temporal subset OCW Dataset |
Return type: | Open Climate Workbench Dataset Object |
Convert water flux or temperature variables units as necessary
For water flux variables, convert full SI units water flux units to more common units. For temperature, convert Celcius to Kelvin.
Parameters: | dataset (dataset.Dataset) – The dataset to convert. |
---|---|
Returns: | A Dataset with values converted to new units. |
Return type: | dataset.Dataset |
Convert water flux variables units as necessary
Convert full SI units water flux units to more common units.
Parameters: | dataset (dataset.Dataset) – The dataset to convert. |
---|---|
Returns: | A Dataset with values converted to new units. |
Return type: | dataset.Dataset |
Write a dataset to a NetCDF file.
Parameters: |
|
---|