polaris.tasks.ocean.Ocean
- class polaris.tasks.ocean.Ocean[source]
The collection of all test case for the MPAS-Ocean core
- Variables:
Methods
__init__()Construct the collection of MPAS-Ocean test cases
add_config(config)Add a shared config to the component
add_step(step)Add a step to the component
add_task(task)Add a task to the component
configure(config)Configure the component
get_or_create_shared_step(step_cls, subdir, ...)Get a shared step from the component if it exists, otherwise create and add it.
If the model is Omega, rename dimensions and variables in a dataset from their Omega names to the MPAS-Ocean equivalent (appropriate for datasets that are output from the model)
If the model is Omega, rename dimensions and variables in a dataset from their MPAS-Ocean names to the Omega equivalent (appropriate for input datasets like an initial condition)
map_var_list_from_native_model(var_list)If the model is Omega, rename variables from their Omega names to the MPAS-Ocean equivalent
map_var_list_to_native_model(var_list)If the model is Omega, rename variables from their MPAS-Ocean names to the Omega equivalent (appropriate for validation variable lists)
open_model_dataset(filename, **kwargs)Open the given dataset, mapping variable and dimension names from Omega to MPAS-Ocean names if appropriate
remove_step(step)Remove the given step from this component
write_model_dataset(ds, filename)Write out the given dataset, mapping dimension and variable names from MPAS-Ocean to Omega names if appropriate