Command-line reference#
ACCESS-MOPPy installs eleven command-line tools. This page gives the synopsis,
options, and typical usage for the nine general-purpose ones; the two QC
plotting and backfill commands, moppy-qc-plots and
moppy-compliance-backfill, are covered in CMIP7 QC Validation
alongside the workflow they belong to. Run any command with --help for the
authoritative, version-specific option list.
moppy-cmorise#
Batch CMORisation controller. Reads a batch configuration YAML file, generates PBS job scripts from templates, submits one job per variable, and starts a monitor job that tracks progress in a SQLite database.
moppy-cmorise <config.yml>
Argument / option |
Description |
|---|---|
|
Path to the batch configuration YAML file (see Configuration reference). |
|
Show help and exit. |
|
Resume failed variables from the first unfinished time split and reuse their existing dated DRS version. |
|
Internal: run the PBS monitor job. Invoked automatically by the launcher — do not call directly. |
Examples:
moppy-cmorise batch_config.yml
moppy-cmorise batch_config.yml --resume
moppy-cmorise /path/to/my_experiment.yml
See Batch Processing Guide for the full workflow.
moppy-dashboard#
Launches the Streamlit web dashboard for monitoring batch CMORisation
progress. Requires streamlit to be installed. The tracker database is
located via the CMOR_TRACKER_DB environment variable
(default: ~/.moppy/db/cmor_tasks.db).
moppy-dashboard # opens the dashboard in your browser
The dashboard offers status/experiment filters, summary statistics, and a failed-task table with error messages.
moppy-tui#
Terminal (Rich) dashboard for the same tracker database — useful over SSH where no browser is available.
moppy-tui [--db DB] [--refresh REFRESH] [--status STATUS]
[--experiment EXPERIMENT] [--max-rows PAGE_SIZE] [--page PAGE]
[--max-failures MAX_FAILURES] [--once] [--json] [--no-color]
Option |
Description |
|---|---|
|
Path to |
|
Database poll interval in seconds (default: 5.0). Ignored with
|
|
Comma-separated statuses to include
( |
|
Filter by |
|
Page size for the tasks table (default: 20). |
|
1-based starting page (only meaningful with |
|
Rows shown in the failures panel. |
|
Render one snapshot and exit (useful for cron / logs). |
|
Emit a machine-readable JSON snapshot and exit. |
|
Disable ANSI colours. |
moppy-batch-report#
Exports a batch tracker database to a JSON report, optionally enriched with the original configuration, PBS logs, and QC data.
moppy-batch-report --db DB [--output OUTPUT] [--config CONFIG]
[--script-dir SCRIPT_DIR]
[--stderr-tail-lines N] [--skip-qc]
Option |
Description |
|---|---|
|
Path to |
|
Report path. Defaults to
|
|
Original batch configuration path. |
|
Directory containing generated PBS scripts/logs. |
|
Number of stderr tail lines to include for failed tasks (default: 20). |
|
Skip QC data collection (can also set |
moppy-qc#
Runs CMIP7 output quality-control checks against one or more CMORised NetCDF files.
moppy-qc output1.nc output2.nc ...
--show-ranges prints the physical-range rules the checks apply instead of
validating files:
moppy-qc --show-ranges # every rule, as a table
moppy-qc --show-ranges --variable tas --experiment ssp370 # one variable, resolved
moppy-qc --show-ranges --format json # machine-readable
Options:
paths One or more CMORised .nc files to validate.
--show-ranges Print the physical-range rules instead of validating.
--variable VARIABLE_ID With --show-ranges, restrict to this variable. Repeatable.
--experiment EXPERIMENT_ID
With --show-ranges, resolve each rule for this experiment
so experiment-specific overrides are applied.
--format {table,json} With --show-ranges, output format (default: table).
See CMIP7 QC Validation for the checks performed and how to interpret results, and Physical range rules for the rules themselves.
moppy-example-config#
Prints the bundled example batch configuration, or copies it to a file if a path is given.
moppy-example-config # print to stdout
moppy-example-config my_config.yml # copy to my_config.yml
moppy-calc-ab-coeffts#
Legacy utility: computes hybrid-height a/b coefficients from a UM
vertlevs namelist file. Only needed for older model output
(ACCESS-ESM1.5, ACCESS-CM2); ACCESS-ESM1.6 output already contains
correctly transformed values. Requires the optional f90nml dependency:
pip install "access_moppy[atmos-tools]"
moppy-calc-ab-coeffts /path/to/vertlevs_G3
See Coordinates and grids for background on the
hybrid-height coordinate and typical vertlevs file locations.
moppy-esmval-prepare#
CMORises raw ACCESS output referenced by an ESMValTool recipe and writes an ESMValCore data-source configuration, without invoking ESMValTool.
moppy-esmval-prepare RECIPE --input-root PATH --cache-dir PATH
[--model-id ID] [--config FILE]
[--output-config FILE] [--workers N] [--dry-run]
[--pattern COMPOUND_NAME:GLOB] [-v]
Argument / option |
Description |
|---|---|
|
Path to the ESMValTool YAML recipe file. |
|
Root directory of the raw ACCESS archive
(e.g. |
|
Directory where CMORised files are written in CMIP DRS structure. |
|
ACCESS-MOPPy model identifier (e.g. |
|
Path to any existing file in your ESMValCore config directory; the MOPPy data-source config is written alongside it. |
|
Where to write the generated data-source config
(default: |
|
Number of parallel CMORisation workers (default: 1). |
|
Log what would be done without performing CMORisation. |
|
Override the raw-file glob for a variable, e.g.
|
|
Enable DEBUG-level logging. |
moppy-esmval-run#
Same as moppy-esmval-prepare, then immediately runs
esmvaltool run RECIPE with the generated configuration. Accepts all
moppy-esmval-prepare options plus:
Option |
Description |
|---|---|
|
Extra arguments forwarded verbatim to |
Example:
moppy-esmval-run my_recipe.yml \
--input-root /g/data/p73/archive/.../MyRun \
--cache-dir ~/.cache/moppy-esmval \
--workers 4
See ESMValTool Integration for the full workflow.