polaris.tasks.ocean.realistic_global.init.remap_woa23.RemapWoa23Step
- class polaris.tasks.ocean.realistic_global.init.remap_woa23.RemapWoa23Step(component, subdir, extrapolate_step, woa23_map_step)[source]
A step for applying the WOA23 mapping weights built by
Woa23MapStep, remapping the extrapolated WOA23 hydrography product from the native 0.25-degree latitude-longitude grid to MPAS cell centers.This step is serial: the MPI work of building the mapping file happens in
Woa23MapStep, andncremapruns in serial here.- Variables:
extrapolate_step (polaris.Step) – The upstream step that produces the extrapolated WOA23 product.
woa23_map_step (polaris.Step) – The upstream step that builds the WOA23-to-mesh mapping file.
- __init__(component, subdir, extrapolate_step, woa23_map_step)[source]
Create the step.
- Parameters:
component (polaris.tasks.ocean.Ocean) – The ocean component the step belongs to.
subdir (str) – The subdirectory for the step.
extrapolate_step (polaris.Step) – The step that produces
woa23_decav_0.25_jan_extrap.nc.woa23_map_step (polaris.Step) – The step that builds the WOA23-to-mesh mapping file.
Methods
__init__(component, subdir, ...)Create the step.
add_cf_check([filename])Check an output file for CF compliance after the step runs.
add_dependency(step[, name])Add step as a dependency of this step (i.e. this step can't run until the dependency has finished).
add_input_file([filename, target, database, ...])Add an input file to the step (but not necessarily to the MPAS model).
add_output_file(filename[, validate_vars, ...])Add the output file to the step
add_property_check(filename, check_properties)Add a single conservation comparison for an output file
check_cf()Check the files added with
add_cf_check()for CF compliance.check_properties()Check conservation properties of the output files of this step.
constrain_resources(available_resources)Constrain
cpus_per_taskandntasksbased on the number of cores available to this stepprocess_inputs_and_outputs()Process the inputs to and outputs from a step added with
polaris.Step.add_input_file()andpolaris.Step.add_output_file().run()Remap WOA23 CT and SA from the 0.25-degree lat-lon source grid to MPAS cell centers, writing
woa23_on_mesh.nc.runtime_setup()Update attributes of the step at runtime before calling the
run()method.set_resources([cpus_per_task, ...])Update the resources for the subtask.
set_shared_config(config[, link])Replace the step's config parser with the shared config parser
setup()Declare the WOA23 input file.
validate_baselines()Compare variables between output files in this step and in the same step from a baseline run if one was provided.
work_path(*filenames)Get the absolute path to a file or directory in the step's work directory
Attributes
coresthe number of cores this step needs, in total
gpusthe number of GPUs this step needs, in total
may_span_nodeswhether this step's cores and GPUs may come from several nodes
min_coresthe number of cores this step needs in order to run at all
min_gpusthe number of GPUs this step requires, in total