Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

All convert and batch convert subcommands accept a --config TOML file plus individual flag overrides. The priority order is:

built-in default  <  --config file  <  individual CLI flags

--config may set any subset of fields; a per-field flag then overrides the config for that field only.

NRT flags

FlagFieldDefault
--deph-source / --no-deph-sourcehas_deph_sourcetrue for BO/GL, false for AR/MO
--profile-coords / --no-profile-coordshas_profile_coordstrue for BO, false otherwise
--pattern <GLOB>patternsee the batch patterns

DEPH is auto-detected. NRT always performs the bidirectional PRES↔DEPH conversion when the file contains a DEPH variable, regardless of has_deph_source. The flag only forces DEPH handling on for files where the variable might otherwise be skipped.

CORA flags

FlagFieldcora defaultcora_legacy default
--time-var <VAR>time_varTIMEJULD
--qc-type <int|char>qc_typeintchar
--time-qc / --no-time-qchas_time_qctruefalse
--deph-source / --no-deph-sourcehas_deph_sourcetruefalse
--pattern <GLOB>pattern*.nc*.nc

TOML config format

# NRT
has_deph_source    = true
has_profile_coords = false
pattern            = "AR_PR_CT_*.nc"  # optional

# CORA
time_var        = "TIME"
qc_type         = "int"   # "int" or "char"
has_time_qc     = true
has_deph_source = true
pattern         = "*.nc"  # optional

Environment variables

ctddump honours a few environment variables for operational tuning. They do not change the contents of the output, only memory use, speed, and the on-disk row-group layout, which is why they live in the environment rather than as per-command flags.

VariableEffectWhen unset
CTDDUMP_CHUNK_ROWSObservation rows assembled per streamed chunk (each written as one Parquet row group). Lower = less memory but more row groups; higher = more memory but fewer. Applies to convert, batch, concat, and the streaming filters (filter / dropqc / dropna / markdup / dedup).1000000
POLARS_MAX_THREADSSize of Polars’ internal thread pool. batch / concat pin this to 1 so their own --threads is the real knob, but a value you set is respected.pinned to 1 by batch / concat
RUST_MIN_STACKWorker-thread stack size, in bytes. Raised to 16 MiB for the deep call chains in Polars’ Parquet writer; a larger value you set is respected.raised to 16 MiB

CTDDUMP_CHUNK_ROWS is the only one most users would ever change, see Technical notes for why streaming in chunks matters. The helper scripts expose it directly as --chunk-rows N, which exports it for every ctddump process they launch.