Documentation

12.1 Your first qc-nm run

Run the command on a copy-controlled model source:

nlmx qc-nm models/run101.ctl -o results/run101-qc-r01

Unlike many linters, correction is enabled by default. The original run101.ctl remains unchanged; if changes are available, the output directory contains run101_qc.ctl plus a CSV and unified diff explaining them.

First-run reading order

  1. Confirm the named source and dataset.
  2. Read the verdict before corrections and the verdict after corrections.
  3. Open qc_nm_changes.diff; review every changed line.
  4. Read remaining FAIL/WARN checks after correction.
  5. Inspect parameter/variable tables and dataset reconciliation.
  6. Promote accepted edits manually into a new controlled revision.

For report-only use:

nlmx qc-nm models/run101.ctl --no-fix -o results/run101-qc-report

What the command needs

The positional argument is normally the .ctl file. If $DATA points to a relative path, qc-nm resolves it from the control stream's location, so launching the command from another directory should not silently change the intended dataset. Add --data only when you deliberately want to check a substitute file, and record that exception. If the output folder already contains files, qc-nm stops unless --overwrite is supplied; for an auditable first run, choosing a new run-specific folder is safer than overwriting.

Why the output copy is not automatically authoritative

Some corrections are mechanical, such as replacing tabs. Others change initial bounds, covariance geometry or method options. Even a mathematically admissible edit may conflict with the intended parameterization. The tool explains what it changed; the modeller decides whether it is correct.

Common mistakes

  • Running the corrected copy immediately because the verdict is READY.
  • Looking only at remaining findings and ignoring changes that resolved findings.
  • Editing the original before preserving the before/after evidence.
  • Reusing an output directory from a prior model revision.

Checklist

  • Freeze/hash the original model and dataset.
  • Use a fresh output directory.
  • Review before verdict, after verdict and diff.
  • Validate an approved new revision by execution.

Further reading

See the complete option index, correction safety and worked example.