polaris.tasks.ocean.realistic_global.init.steps.get_realistic_init_steps
- polaris.tasks.ocean.realistic_global.init.steps.get_realistic_init_steps(component, mesh_name, include_viz=False, model='mpas-ocean')[source]
Get shared steps for the realistic global ocean initialization workflow for one MPAS mesh.
Composes the full dependency chain:
Upstream cull-topography steps from
e3sm/init(viaget_cull_topo_steps())WOA23 hydrography steps (via
get_woa23_steps())JRA55-do wind-stress steps (via
get_jra55_steps())VizInitStep, only ifinclude_vizisTrue
InitialStateStep,ForcingStepandVizInitStepwrite or read files in one model’s format, so they are model-dependent: they live underinit/<model>/with a copy ofinit.cfgof their own, and their[ocean] modelmust bemodel. The other steps are model-neutral and are shared by both models’ chains. Seepolaris.tasks.ocean.realistic_global.models.The Omega-only shortwave extinction steps are added only when
modelis'omega'.All new steps are created via
polaris.Component.get_or_create_shared_step()so that they are reused if the same mesh name appears in multiple tasks.- Parameters:
component (polaris.tasks.ocean.Ocean) – The ocean component the steps belong to.
mesh_name (str) – The name of the MPAS mesh (e.g.
'icos240km').include_viz (bool, optional) – Whether to include the (shared)
VizInitStepin the returned steps. The step is always created as a shared component step so it is part of the workflow, but it is only added to the returned dict (and therefore to a task’ssteps_to_run) when this isTrue. The standaloneRealisticGlobalInittask passesinclude_viz=True; other consumers that reuse the init outputs as dependencies leave itFalseso the plots are not regenerated.model (str, optional) – The ocean model to build the model-dependent steps for.
- Returns:
steps (dict of {str: polaris.Step}) – All steps keyed by their suggested symlink names.
config (polaris.config.PolarisConfigParser) – Per-mesh shared config for the model-neutral init steps.