Configuration reference#
ACCESS-MOPPy is configured in three places:
~/.moppy/user.yml— per-user provenance metadata, created when thepersonalpublication profile first writes output.ACCESS_ESM_CMORiserkeyword arguments — for interactive / scripted Python use.Batch configuration YAML — consumed by
moppy-cmorisefor PBS batch runs.
User configuration (~/.moppy/user.yml)#
Created interactively the first time you import access_moppy. It records
your name, email, organisation, and ORCID, which are written as global
attributes into CMORised files using the default personal publication profile.
Official ACCESS Consortium publication does not read this file.
Python API: ACCESS_ESM_CMORiser parameters#
See the generated API reference
for the authoritative signature.
Parameter |
Type / default |
Description |
|---|---|---|
|
path, list of paths, |
Data to CMORise. May be omitted for internally generated variables or when using |
|
path, |
Root of a payu archive. ACCESS-MOPPy discovers input files automatically using the model mapping’s |
|
int, |
Restrict auto-discovery to a year range (filename-based, no file I/O). |
|
str (required) |
CMIP6-style |
|
str (required) |
CMIP experiment ID, e.g. |
|
str (required) |
CMIP source ID, e.g. |
|
str (required) |
e.g. |
|
str, |
e.g. |
|
|
Selects the controlled vocabulary and CMOR table set. |
|
str, |
e.g. |
|
path, default |
Where |
|
path, |
If set, output is organised in the CMIP DRS directory structure under this root. |
|
dict, |
Parent experiment metadata (see below). Omitting it triggers a warning: output may not be publication-compliant. |
|
str, |
Selects the model mapping file (default |
|
bool, |
Check that input data frequency matches the target table. |
|
bool, |
Allow temporal resampling when input frequency differs. |
|
str, |
Resampling method selection. |
|
bool, |
Enable explicit dataset chunking. |
|
|
Output file splitting policy (see below). |
|
|
Select personal provenance metadata or the official ACCESS Consortium contact. |
Publication profiles#
The default personal profile writes creator_name, creator_email,
creator_url, and creator_organisation from ~/.moppy/user.yml.
Use access-consortium for data that will be officially published by the
ACCESS Consortium:
cmoriser = ACCESS_ESM_CMORiser(
# ...
publication_profile="access-consortium",
)
This profile removes every creator_* global attribute and writes:
contact = "data.access.nri@anu.edu.au"
The contact is fixed by ACCESS-MOPPy and cannot be overridden by experiment metadata, ensuring all official publications use the same institutional address.
parent_info block#
Required for CMIP publication; optional for evaluation workflows (ESMValTool, ILAMB).
parent_info = {
"parent_experiment_id": "piControl",
"parent_activity_id": "CMIP",
"parent_source_id": "ACCESS-ESM1-5",
"parent_variant_label": "r1i1p1f1",
"parent_time_units": "days since 0001-01-01 00:00:00",
"parent_mip_era": "CMIP6",
"branch_time_in_child": 0.0,
"branch_time_in_parent": 54786.0,
"branch_method": "standard",
}
split_years values#
Value |
Behaviour |
|---|---|
|
Split per CMIP/ESGF conventions: 1 year per file for sub-daily, 5 for daily, 10 for monthly; single file for yearly/fixed. |
|
Write the entire time series to one file. |
positive int |
Explicit chunk length in years for all frequencies. |
The defaults are importable as access_moppy.DEFAULT_CHUNK_YEARS.
Batch configuration YAML (moppy-cmorise)#
Generate a starting point with moppy-example-config my_config.yml.
Required keys#
Key |
Description |
|---|---|
|
List of compound names to process (one PBS job each), e.g. |
|
CMIP metadata, as for the Python API. |
|
Root directory of the raw model archive. |
|
Where CMORised output, the tracker database, and reports are written. |
Optional keys#
Key |
Default |
Description |
|---|---|---|
|
|
|
|
|
Mapping file used for auto file-discovery. |
|
package defaults |
Parent experiment block (same keys as the Python API). |
|
auto-discovery |
Per-variable glob overrides, e.g. |
|
unset |
Organise output in CMIP DRS structure under this root. |
|
auto |
Directory for generated PBS scripts and logs. |
|
|
Block until all jobs finish before exiting. |
|
|
Reuse contiguous completed time splits, continue from the first unfinished year, and retain the existing dated DRS version. |
|
unset |
Opt-in pre-loading partition size for monthly or daily variables with a direct mapping, or a formula mapping whose |
|
|
Replace the job’s Dask cluster with a fresh one after every N source partitions, which bounds how much memory a long-lived worker accumulates and lets workers be sized smaller (see Understand how the number of Dask workers is chosen in the batch processing guide). |
|
|
Run the |
|
|
Lowest checker weight treated as a failure. |
|
derived from |
Explicit list of checker suites, e.g. |
|
unset |
Maximum variable jobs submitted by one monitor at a time. A finished job opens a slot for the next variable. |
|
|
Seconds between aggregate PBS status requests for active workers. Use a longer interval, such as |
|
unset |
Shared directory containing publication slots. Set this to the same Lustre path across related experiments. |
|
unset |
Maximum simultaneous staged-file moves using |
|
|
Maximum random delay before acquiring a publication slot. |
|
|
Age after which an abandoned publication slot can be recovered. This should exceed the longest worker walltime. |
|
|
Set to |
|
|
Custom tracker database location. |
Compliance check#
source_partition_years: 10 # write the first output after 10 years of input
compliance_check: true # validate that first file before continuing
compliance_check_min_weight: 3
The checker runs once per variable, on the first file written by the first
source partition, immediately after that file has been published to its DRS
location and before any later file is. The write does not wait for it: while
the first file is being repacked and checked, the next files are computed and
repacked, but each is published only after the files before it. A failure
therefore stops the variable at its first published file. With jobfs
write-staging (the default when the job has jobfs) the files after it are
discarded from jobfs, so no unvalidated file is left behind in the DRS tree;
without staging they are left in place unmarked, and a resume run writes
them again.
The verdict is written to the task row as well as to the JSON report beside the
job, so it appears as tasks[].compliance in moppy_batch_report.json — pass
or fail, with the suites and CV version it was judged against. See
What gets recorded in the batch report for the three checks a batch run records.
The default pairs two suites in a single invocation, because they do not overlap:
Suite |
Covers |
|---|---|
|
The CF conventions themselves — data types, coordinate systems, cell methods, bounds semantics, |
|
CMIP specifics — required global attributes and their CV values, DRS directory and filename, variable registry, chunking, time-axis consistency. |
Override the pair with compliance_check_suite to run any suites the local
compliance-checker --list-tests offers. The default is derived from
cmip_version rather than hardcoded, so a CMIP6 batch is never validated
against the CMIP7 vocabulary:
compliance_check_suite:
- cf:1.11
- wcrp_cmip7:1.0
A JSON report holding both sections is always kept — pass or fail — next to
the generated worker script, in
<script_dir>/logs/<variable>/compliance_<file>.json. An access_moppy block
in that report records the suites, the enforced weight, and the esgvoc
vocabulary version applied, because the suite name pins the checker plugin and
not the vocabulary: wcrp_cmip7:1.0 validates against whichever CMIP7 CV the
local esgvoc database holds (1.2.16 in conda/analysis3-26.07).
WCRP checks that fail because the esgvoc vocabulary database is unavailable
are reported as a warning but never abort the variable, so an incomplete
checker environment cannot take down a whole batch. Install it with
esgvoc install to enable those checks.
compliance_check_min_weight: 1 is rarely usable: CMIP output declares
Conventions = "CF-1.7 CMIP-6.2", which cf:1.11 reports as a weight-2
finding for every file.
When the file fails, it is renamed to <file>.nc.compliance_failed and the
variable is marked failed in the tracker. The file is kept for inspection, and
because it no longer matches the published DRS layout a later resume run
cannot mistake it for a completed split.
Backfilling runs made before compliance_check existed#
moppy-compliance-backfill runs the same checks, after the fact, against
output produced by a batch that predates this option (or that ran with it
disabled). It scans an output tree, groups files by variable using their
CMIP global attributes, and checks the earliest-published file per variable —
without renaming or removing anything, since there is no in-flight job left
to stop:
moppy-compliance-backfill \
--output-folder /path/to/output \
--cmip-version CMIP6 \
--batch-report /path/to/moppy_batch_report_20260101T000000Z.json
Reports are written per variable under --report-dir (default:
<output-folder>/compliance_reports/<identity>/compliance_<file>.json), in
the same JSON format compliance_check produces live. Passing --batch-report
merges a summary into that report’s compliance key in place; pass
--report-output to write the merged report elsewhere instead. Repeat runs
reuse an on-disk report instead of re-invoking the checker, as long as it was
produced with the same suites and --min-weight; pass --no-skip-existing
to force a re-check.
Use --variable (repeatable, table.variable or a bare variable name) to
target specific variables instead of scanning the whole output tree.
Pass --db /path/to/cmor_tasks.db to target every variable the tracker
database marks completed — combine it with --variable to check only some
of them — and to write each result back onto its cmor_tasks row, under a
compliance_json column:
moppy-compliance-backfill \
--output-folder /path/to/output \
--db /path/to/cmor_tasks.db \
--experiment-id historical
Regenerating the batch report afterwards (moppy-batch-report) then picks up
those results automatically under each task’s compliance field, alongside
--batch-report’s one-shot summary merge.
PBS resource keys#
Key |
Example |
Description |
|---|---|---|
|
|
PBS queue name. |
|
|
CPUs per job. |
|
|
Memory per job. |
|
|
Local scratch space. |
|
|
Maximum runtime per job. |
|
|
Extra PBS directives (project, etc.). |
|
|
NCI storage mounts required by jobs. |
|
multi-line string |
Shell commands run at job start (module loads, conda activation). Also where you export Dask worker-sizing env vars such as |
Per-variable resource overrides#
variable_resources:
Omon.thetao: # 3D ocean variables need more resources
cpus_per_node: 28
mem: 128GB
walltime: "06:00:00"
day.pr: # daily data needs more memory
mem: 64GB
walltime: "04:00:00"
The same block carries per-variable CMORisation settings, not just resources.
grid_label and match_variable select which of the four ACCESS atmosphere
grids a computed areacella describes, for CMIP7 runs (see
Coordinates and grids):
variable_resources:
atmos.areacella.ti-u-hxy-u.fx.glb:
match_variable: ta # build the measure on ta's cells, not the theta points
Complete example#
variables:
- Amon.pr
- Omon.tos
experiment_id: piControl
source_id: ACCESS-ESM1-6
variant_label: r1i1p1f1
grid_label: gn
activity_id: CMIP
cmip_version: CMIP7
input_folder: "/g/data/project/model_output"
output_folder: "/scratch/project/cmor_output"
queue: "normal"
cpus_per_node: 16
mem: "32GB"
walltime: "02:00:00"
scheduler_options: "#PBS -P tm70"
storage: "gdata/p73+scratch/tm70"
worker_init: |
module use /g/data/xp65/public/modules
module load conda/analysis3
See Batch Processing Guide for tuning guidance, monitoring, and error recovery.