CLI Reference#
calibrate#
Main calibration binary.
calibrate [OPTIONS] [COMMAND]
Default Mode (Calibration)#
Flag |
Default |
Description |
|---|---|---|
|
L0 Zarr store path |
|
|
L1 Zarr output directory |
|
|
ATM table file (.catm, .dat, or .dat.gz) |
|
|
WFM manifest JSON (replaces –input/–output/–atm-table) |
|
|
fit |
Fixed PWV in mm (omit to fit from data) |
|
auto |
Observation mode: auto, totalpower, otf |
|
kalibrate-compat |
Physics constants: exact, kalibrate-compat |
|
0.97 |
Forward efficiency |
|
0.5 |
Image sideband gain |
|
auto |
Rayon thread pool size |
|
Increase log level (-v = debug, -vv = trace) |
|
|
Suppress progress bar |
FITS Ingest Mode (requires fits-ingest feature)#
Flag |
Default |
Description |
|---|---|---|
|
FITS folder to convert and calibrate |
|
|
|
Where to place the converted Zarr store |
Subcommands#
calibrate convertConvert a text ATM table to binary format for fast loading.
calibrate convert --input atm.dat.gz --output atm.catm
Exit Codes#
0 — all scans calibrated successfully
1 — all scans failed (or no scans found)
2 — partial failure (some scans succeeded, see
failures.json)
Manifest Schema#
{
"input_zarr_paths": ["/data/l0/session.zarr"],
"atm_table_path": "/data/atm/atm.catm",
"output_dir": "/data/l1/",
"scan_range": [25650, 25660],
"config_overrides": {
"obs_mode": "otf",
"pwv": 1.2,
"physics": "exact",
"foeff": 0.97,
"gain_image": 0.5,
"threads": 8
}
}
zarr-fits#
Standalone FITS-to-Zarr conversion binary.
zarr-fits convert [OPTIONS]
Flag |
Default |
Description |
|---|---|---|
|
Input directory containing FITS files |
|
|
Output Zarr store path |
|
|
Scan filter (e.g., |
|
|
CPU count |
Parallel worker threads |
|
false |
Re-process scans already in store |
|
auto |
Telescope profile name |
|
embedded |
Custom profile directory |
|
Verbosity (-v = debug, -vv = trace) |
Examples#
# Basic calibration
calibrate -i session.zarr --output l1/ --atm-table atm.catm
# OTF mode with fixed PWV
calibrate -i session.zarr --output l1/ --atm-table atm.catm \
--pwv 1.2 --mode otf
# FITS folder → convert + calibrate
calibrate -f /data/raw/session_001 --output l1/ --atm-table atm.catm
# Standalone conversion
zarr-fits convert -f /data/raw/session_001 -z session.zarr
# Convert ATM table to binary
calibrate convert --input atm.dat.gz --output atm.catm
# Batch via manifest
calibrate --manifest manifest.json