polaris.tasks.ocean.Ocean.open_model_dataset
- Ocean.open_model_dataset(filename, config, 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
config (polaris.config.PolarisConfigParser) – Configuration for the task; used when the model is Omega to compute geometric layer thickness from pseudo-thickness.
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_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