polaris.tasks.ocean.Ocean.write_model_dataset

Ocean.write_model_dataset(ds, filename, config)[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.