ts (Developer Reference)
Implementation
Python module:
zppy/ts.pyJinja2 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:
Load the
ts.bashtemplate.Call
get_tasks(config, "ts")for all subtasks.For each task:
Resolve mapping file, grid, and component type.
Render the template and write the bash script.
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.