polaris.tasks.ocean.Ocean.write_model_dataset
- Ocean.write_model_dataset(ds, filename, config, contains_state=False)[source]
Write out the given dataset, mapping dimension and variable names from MPAS-Ocean to Omega names if appropriate
- Parameters:
ds (xarray.Dataset) – A dataset containing MPAS-Ocean variable names
filename (str) – The path for the NetCDF file to write
config (polaris.config.PolarisConfigParser) – Configuration for the task; used when the model is Omega to convert geometric layer thickness to pseudo-thickness before writing.
contains_state (bool, optional) – If True, perform additional validation that all configured state variables are present in the dataset after mapping.