Skip to main content

yellow_belt_imaging

A terminal interface for the yellow-belt MeerKAT imaging pipeline: one command runs the whole reduction — RFI flagging and averaging, 1GC calibration, target flagging, 2GC, and the direction-dependent (3GC) calibration with DDFacet imaging and a killMS solve — for one measurement set. Everything runs in containers (apptainer or singularity); this tool checks the environment, collects and validates the configuration, builds the pipeline image, runs the pipeline with its output streaming into a log pane, and cancels cleanly.

Built with textual.

Install

pip install yellow-belt-imaging
yellow_belt_imaging        # or: python -m yellow_belt_imaging

Install it into its own venv (python -m venv): this package needs rich >= 14.2 (via textual), while stimela 2.1.4 pins rich < 14 — the two cannot share an environment, and pip will happily break one while installing the other.

Works on Linux (amd64 and arm64) and macOS (to drive a remote pipeline host — the pipeline itself runs under apptainer/singularity on Linux).

What you need

  • apptainer (preferred) or singularity — no root, no special flags; user namespaces must be enabled (the default on most Linux systems). The interface checks for this at launch and tells you if neither is installed.
  • The raw measurement set (a *.ms directory) — it may live in a read-only directory (an archive mount): the averaged MS and the flag versions are written to MS_OUTPUT_DIR, which defaults to OUT_PATH.
  • Disk space: a few GB for the pipeline image and cab images, plus the products (tens of GB for a real run).
  • RAM — the amount you declare as RAM_GB becomes the compute budget the pipeline plans against (see the resolution note below).

The walkthrough

  1. Launch — the status line shows the detected runtime and version, and which release the SIF (the pipeline image file) carries. The action buttons stay disabled until apptainer or singularity is found.
  2. Fill the form (left column) — every directory field has a Browse… picker (navigate into the directory, press Select):
    • MS_PATH — the raw measurement set;
    • OUT_PATH — where the run works and the products land (relative paths are fine);
    • MS_OUTPUT_DIR — where the averaged MS is written (empty = OUT_PATH, so the MS's own directory may stay read-only);
    • BEAMS_DIR / BEAM_CUBE_DIR — optional; see the beam note below;
    • RAM_GB — the compute budget (see the resolution note below); NCPU (empty = all cores); BAND (L / UHF);
    • the image tag (default latest) and the SIF path (default ~/meerkat-pipeline.sif).
  3. Build SIF (once) — builds docker://ghcr.io/tmolteno/meerkat-pipeline:<tag> into the SIF path with --force (a switch: on by default, so a stale SIF can be refreshed). The first build downloads a multi-GB image — the status line counts the elapsed time and the output streams as it converts.
  4. Analyse observation — classifies the measurement set with the pipeline's own planner and fills the Observation group from what it decides: the bandpass calibrator, the targets, the phase calibrators (and which one brackets each target), and which scans to keep. It takes seconds (only the MS's index columns are read) and prints the per-scan decode, its warnings, and the geometry numbers (resolution, recommended image size, averaging limits). The fields open for you to sanity-check; the geometry settings in the same group (IMAGE_FOV, OVERSAMPLING, MS_UVMAX, MS_CHANBIN) are yours to choose. Check validates the form before anything runs.
  5. Run pipeline — refuses to start on an invalid configuration, on a stale SIF (its version is compared against the selected tag on the registry, so you cannot accidentally run old pipeline code), and when the observation has not been analysed for the selected MS — that is how a run would otherwise quietly use another observation's calibrators and scans. While it runs, the output streams into the right-hand log pane, the status line ticks, and Cancel stops everything (SIGTERM, then SIGKILL).
  6. Copy output (ctrl+o or the button) — the whole log pane onto the terminal clipboard. For mouse selection, hold shift and drag — most terminals pass that through to their own selection even while a TUI claims the mouse.
  7. Products land in $OUT_PATH/out_<ms-name>/ (images, models, the plan reports, stimela logs under logs/); the averaged MS is written next to your raw MS; the analysis is kept in $OUT_PATH/analysis_<ms-name>/.

RAM_GB sets the resolution

The uv cut — and with it the image resolution — is whatever RAM_GB affords, up to the longest baseline: on the bundled mergA_tim example, 112 GB gives ~3980 m / ~10.9″ (NPix ~5265); give it less and the resolution drops (with severe shortage, time averaging is added) rather than the run failing; RAM_GB=0 plans against what is free at the moment each stage starts. Set UVMAX_USE_PROFILE_CAP to pin the run to the observation's profile resolution instead (uv ≤ MS_UVMAX, 2500 m / ~17.4″ for mergA_tim).

Beam cubes are generated on demand

Stage 4 reads a scalar FITS beam cube derived from a full-Jones source cube. If you don't supply one (BEAMS_DIR, or a pre-derived primary_beam_mbeams_m012_* in BEAM_CUBE_DIR), the pipeline generates what is missing: it downloads the band's holography dataset (~420 MB, cached under beam-cubes/mbeams-cache/, ~5.4 GB, reused across runs) and renders the cubes. Hand a pre-rendered source cube to the run via BEAMS_DIR to skip the download.

Your parameters are remembered

Every Run or Build launch saves the full configuration to .yellow_belt_imaging_param in the working directory; the next launch pre-populates the form from it (a missing or corrupt file falls back to the defaults). The file is gitignored in the source repository.

Metadata

Release files for yellow-belt-imaging 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yellow-belt-imaging 0.1.6
File Size Uploaded Provenance Actions
yellow_belt_imaging-0.1.6.tar.gz 24.9 kB With provenance Details for yellow_belt_imaging-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yellow-belt-imaging 0.1.6
File Interpreter ABI Platform Actions
yellow_belt_imaging-0.1.6-py3-none-any.whl Python 3 none any Details for yellow_belt_imaging-0.1.6-py3-none-any.whl

Total release size: 49.1 kB

Release files / yellow_belt_imaging-0.1.6.tar.gz

Download URL yellow_belt_imaging-0.1.6.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fc8172e1983263ddaa36f972a93af57c03556dae6fca4989b0fce624f7fcdf59
BLAKE2b-256 checksum
How to use checksums
2fed5f95f4be55ca5f721eb495c34f2f010ffec42c12f5f335227df15ef17331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / yellow_belt_imaging-0.1.6-py3-none-any.whl

Download URL yellow_belt_imaging-0.1.6-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
707213625c4d075bcaa4a02859b6759a47178541a2be88b55532d1145a07e265
BLAKE2b-256 checksum
How to use checksums
dcc6a81d035ce96f717c1623f7b9bde0486ae0398276f6f31b533034db7191e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for yellow-belt-imaging 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for yellow_belt_imaging-0.1.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page