Skip to main content

Utility methods for reasoning about Measurement Set v4 Datasets

Project description

msv4-utils

Lightweight utilities for reasoning about Measurement Set v4. Core functionality depends only on the Python standard library.

Installation

pip install msv4-utils

Usage

Infer the MSv4 backend from a URI

from msv4_utils import infer_backend, MSv4Backend

backend = infer_backend("/path/to/data.ms")
if backend == MSv4Backend.CASA_TABLE:
    # open with xarray-ms
    ...
elif backend == MSv4Backend.ZARR:
    # open with xarray
    ...
elif backend == MSv4Backend.MEERKAT:
    # open with xarray-kat
    ...

MSv4 type constants

from msv4_utils.msv4_types import VISIBILITY_XDS_TYPES

xds_type = xds.attrs["type"]
if xds_type in VISIBILITY_XDS_TYPES:
    print("interferometric data")

Development

uv sync
uv run pytest tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msv4_utils-0.0.3.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msv4_utils-0.0.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file msv4_utils-0.0.3.tar.gz.

File metadata

  • Download URL: msv4_utils-0.0.3.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for msv4_utils-0.0.3.tar.gz
Algorithm Hash digest
SHA256 681363c0e79454536ca748f4235b4b91cd0768433294b7c47575a1c0567d64ac
MD5 c70e5b46d97fdd165820149437a27c74
BLAKE2b-256 ca8533638b948df2a5b115a955c67be0845cac532bef711a178060cf2d08883e

See more details on using hashes here.

Provenance

The following attestation bundles were made for msv4_utils-0.0.3.tar.gz:

Publisher: ci.yml on ratt-ru/msv4-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file msv4_utils-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: msv4_utils-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for msv4_utils-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 522e902cb5b8b322bad25d7434e7ffbc14e0e687dcb7ca23113c872305bd4efb
MD5 d0bcd6ebbd8f7defa2314c92aa24e31d
BLAKE2b-256 cbc54eea0ca3fff078dabfbfa11fdf90b8578db62ac66186b1d599ce2f772171

See more details on using hashes here.

Provenance

The following attestation bundles were made for msv4_utils-0.0.3-py3-none-any.whl:

Publisher: ci.yml on ratt-ru/msv4-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page