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

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) in a writable directory: the first stage writes the averaged MS and flag versions next to it.
  • 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 whether the SIF (the pipeline image file) is already built. Run/Build stay disabled until apptainer or singularity is found.
  2. Fill the form — 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);
    • 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. Check validates the form before anything runs.
  4. Run pipeline — refuses to start on an invalid configuration (bad paths, an unwritable MS parent, a stale SIF: the SIF's version is compared against the selected tag on the registry, so you can never accidentally run old pipeline code). While it runs, the output streams into the log pane, the status line ticks, and Cancel stops everything (SIGTERM, then SIGKILL).
  5. 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.
  6. 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.

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.

The headless equivalent

Everything the interface does — environment checks, the configuration variables, the build and run commands — is documented headless in full_containerized/APPTAINER.md of the source repository, where the docker and compose variants live too.

Development

Source: full_containerized/yellow_belt_imaging_tui/ in tmolteno/meerkat_imaging. Releases go to PyPI with Trusted Publishing: the yellow-belt-imaging.yml GitHub workflow builds, smoke-tests and uploads on a yellow-belt-imaging-vX.Y.Z tag that matches the pyproject version.

Install it into its own 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.

Metadata

Release files for yellow-belt-imaging 0.1.3

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.3
File Size Uploaded Provenance Actions
yellow_belt_imaging-0.1.3.tar.gz 17.9 kB With provenance Details for yellow_belt_imaging-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 35.4 kB

Release files / yellow_belt_imaging-0.1.3.tar.gz

Download URL yellow_belt_imaging-0.1.3.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4ca3eab5a57716a34982148d98f2cd1357eae7959d387c4c72eee376badf6fd9
BLAKE2b-256 checksum
How to use checksums
2e09b9200b35277866b2147b437c203f0536b6941ff436c38c333674244190f2
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 28, 2026.

Transparency log

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

Download URL yellow_belt_imaging-0.1.3-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7d7c2152c2ab84cb85e1291668a4d968756197ac5a07ea284ef3c748b3607d1
BLAKE2b-256 checksum
How to use checksums
ceb503794d4f280fd4b6aa20af95e7bc026541fd5a83880efc25c65476454b49
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 28, 2026.

Transparency log

Security for yellow-belt-imaging 0.1.3

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.3.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 28, 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