mpas_analysis.ocean.utility.add_standard_regions_and_subset

mpas_analysis.ocean.utility.add_standard_regions_and_subset(ds, config, regionShortNames=None)[source]

Add standard region names (regionNames coordinate) to a dataset and rename nOceanRegionsTmp dimension to nOceanRegions (if present). Shorter standard region names are in regionNamesShort.

Parameters:
Returns:

ds (xarray.Dataset) – the dataset with region names added and possibly subsetted