ts (Developer Reference)

Implementation

  • Python module: zppy/ts.py

  • Jinja2 template: zppy/templates/ts.bash

The ts function iterates over all [ts] tasks and generates a SLURM bash script from the ts.bash Jinja2 template for each year-range/subsection combination.

Key steps in ts.py:

  1. Load the ts.bash template.

  2. Call get_tasks(config, "ts") for all subtasks.

  3. For each task:

    1. Resolve mapping file, grid, and component type.

    2. Render the template and write the bash script.

    3. Submit the script.

Vertical remapping

When vrt_remap_vars is non-empty, the template also calls ncremap after ncclimo to remap specified variables from model levels to pressure levels. Output is written to a sibling ts_vrt_remap/ directory.

Dependencies

Upstream (what ts depends on):

  • None. The ts task reads raw simulation output directly.

Downstream (what depends on ts):