polaris.tasks.ocean.Ocean.open_model_dataset

Ocean.open_model_dataset(filename, mesh_filename=None, reconstruct_variables=None, coeffs_filename=None, **kwargs)[source]

Open the given dataset, mapping variable and dimension names from Omega to MPAS-Ocean names if appropriate

Parameters:
  • filename (str) – The path for the NetCDF file to open

  • ds_mesh (xr.Dataset) – The MPAS mesh dataset for the ocean model.

  • mesh_filename (str, optional) – Path to the mesh NetCDF file.

  • reconstruct_variables (list of str, optional) – List of variable names to reconstruct in the dataset.

  • coeffs_reconstruct (xarray.DataArray, optional) – Coefficients used for reconstructing variables.

  • coeffs_filename (str, optional) – Path to the coefficients NetCDF file.

  • kwargs – keyword arguments passed to xarray.open_dataset()

Returns:

ds (xarray.Dataset) – The dataset with variables named as expected in MPAS-Ocean