polaris.tasks.ocean.realistic_global.forward.initial_condition.StepInitialCondition
- class polaris.tasks.ocean.realistic_global.forward.initial_condition.StepInitialCondition(init_step: Step, min_res: float, approx_cell_count: int | None, forcing_step: Step)[source]
An initial condition provided by an upstream
realistic_global/initstep, whose work directory holds the mesh, vertical coordinate (Omega), initial state, and graph files.- Variables:
init_step (polaris.Step) – The
initial_statestep whose outputs are consumed.forcing_step (polaris.Step) – The
forcingstep whose model-specific forcing file is consumed.
- __init__(init_step: Step, min_res: float, approx_cell_count: int | None, forcing_step: Step) None[source]
Create the source.
- Parameters:
init_step (polaris.Step) – The
initial_statestep (fromget_realistic_init_steps()) whose outputs the forward step consumes.min_res (float) – The mesh minimum resolution in km (from the mesh definition).
approx_cell_count (int or None) – The approximate number of cells in the mesh (from the mesh definition), used to size resources during setup before the mesh file exists.
forcing_step (polaris.Step) – The
forcingstep (from the sameget_realistic_init_steps()call) that writes the model-specific surface forcing file. Required, because every realistic_global forward run is wind-forced.
Methods
__init__(init_step, min_res, ...)Create the source.
add_input_files(step)Link the mesh, vertical coordinate, initial state and surface forcing from the init steps' work directories.
get_forcing_filename(step)The local filename the model's forcing streams should read.
Attributes
graph_targetmin_resapprox_cell_count