Skip to main content

suricat-beams

MeerKAT primary beam model handling utilities

See https://doi.org/10.48479/wdb0-h061 for documentation on beam models.

The utilities can download the models for you automatically, see suricat-beams/suricat/recipes/init.yml Stimela recipe.

Installation

Use pip install suricat-beams for the full package.

Use pip install suricat-beams-cabs to install Stimela cab definitions only.

CLI commands

All commands are accessible via the suricat CLI:

suricat download U                      # Download U-band beam model
suricat mdv2bds input.npz output.bds    # Convert MdV npz to beam dataset
suricat bds2xradio beam.bds.zarr image.zarr output.zarr \
    --output-var SKY \
    --pixel-stepping 4 --time-stepping 4 \
    --num-freq 8 --chunks-time 1 --chunks-freq 1 \
    --polarizations I --beam-type nstokes       # Render BDS to xradio zarr
suricat mdv2xradio mdv-beams-L.npz output.zarr \
    --antenna -1 --jones HH --part real \
    --output-var SKY                            # Convert MdV npz to xradio zarr

Output format

Both xradio tools produce zarr datasets following the xradio image schema:

Dimensions:   (time, frequency, polarization, l, m)
Coordinates:  time (MJD), frequency (Hz), polarization (str), l (rad), m (rad)
Data vars:    <var_name> (time, frequency, polarization, l, m) float32
Attributes:   direction (reference, latpole, lonpole, projection, pc)

Stimela integration

Stimela cab definitions are in suricat-beams/suricat/cabs/suricat.yml:

  • suricat.download-mdv-beams -- download MdV beams from SARAO archive
  • suricat.mdv-beams-to-bds -- convert MdV npz to beam dataset
  • suricat.bds-to-xradio -- render BDS to xradio zarr image
  • suricat.mdv-to-xradio -- convert MdV npz to xradio zarr image
stimela run suricat-beams/suricat/recipes/init.yml suricat-init band=U

Python API

from suricat.xradio_util import bds_to_xradio, mdv_to_xradio

# Render a BDS with observational context
bds_to_xradio("beam.bds.zarr", "image.zarr", "output.zarr",
              output_var="SKY", num_freq=8, pixel_stepping=4)

# Convert raw MdV beam
mdv_to_xradio("mdv-beams-L.npz", "output.zarr",
              jones="HH", part="real", antenna=-1)

Metadata

Release files for suricat-beams 0.2.2.post2

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

Source distribution (sdist)

Source distribution for suricat-beams 0.2.2.post2
File Size Uploaded
suricat_beams-0.2.2.post2.tar.gz 26.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for suricat-beams 0.2.2.post2
File Interpreter ABI Platform
suricat_beams-0.2.2.post2-py3-none-any.whl Python 3 none any Details

Total release size: 58.0 kB

Release files / suricat_beams-0.2.2.post2.tar.gz

Download URL suricat_beams-0.2.2.post2.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f89ecfc6f25ece28af492a834bd1fbe22cb51f1f98b807b5751d7d88e3560959
BLAKE2b-256 checksum
How to use checksums
e5267de577ca3ac3e683986a885eba1aee6e6e8445456ef878fd11e30f452ce3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1013-azure

Release files / suricat_beams-0.2.2.post2-py3-none-any.whl

Download URL suricat_beams-0.2.2.post2-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da8f6fc6a42188762704a9df133cf0ddeaa74348427174f24b5ab3cafc5235f0
BLAKE2b-256 checksum
How to use checksums
04f926835062f876e9c73f44ff6434545c1a3e923418def107a70a39d2cb396b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1013-azure
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