Skip to main content

Skarabina

PyPI - dask-ms-2

 =,                .=
=.|      ,---.      |.=
=.|   "-(:::::)-"   |.=
   \\__/`-.|.-'\__//
    `-| .::| .::|-'      Pillendreher
     _|`-._|_.-'|_       (Scarabaeus sacer)
   /.-|    | .::|-.\
  // ,| .::|::::|. \\
 || //\::::|::' /\\ ||
 /'\|| `.__|__.' ||/'\
^    \\         //    ^
     /'\       /'\
    ^             ^

skarabina: a basic 1GC radio astronomy RFI flagger

Author: Tim Molteno (tim@elec.ac.nz)

Intended to reduce I/O costs by performing the standard flagging during 1GC efficiently, and with low memory requirements. Skarabina can also do averaging to reduce data volume, and measurement set analysis to recommend image size.

Documentation

See doc/ for full documentation:

Dependencies

skarabina depends on two packages from the same author:

  • casacure — a pure-Rust drop-in for python-casacore's table system, and skarabina's default I/O backend. It comes with the package (no system casacore needed), on x86_64 and arm64 alike.
  • dask-ms-2 — the tmolteno/dask-ms fork of dask-ms (import package daskms, same as upstream), which carries the casacure I/O backend and the DASK_MS_BACKEND backend selection.

pip install skarabina pulls both in automatically (as dask-ms-2[casacure,xarray,zarr] plus casacure); the backend is pinned at import and python-casacore is not a skarabina backend. See INSTALL.md for details.

Install

pip install skarabina

See INSTALL.md for detailed instructions, including aarch64 / NVIDIA DGX Spark setup.

Quick start

# Flag and clean (including autocorrelations)
skarabina --ms raw.ms --flag-autos --flag-nan --flag-uv-above 4000 \
    --time-average-factor 3 --optimize --msout clean.ms --clobber

# Keep a subset of scans, then average
skarabina --ms raw.ms --scan 1,12,14 --flag-nan \
    --frequency-average-factor 8 --msout kept.ms --clobber

# Analyze
skarabina-analyze --ms raw.ms --image-fov 2.5

# Plot a gain table or an MS (casaplotms substitute, arm64-friendly)
skarabina-plotms --ms raw.ms --plotfile amp_vs_time.png --overwrite

--field-of-view (flagging/summary) and --image-fov (analysis) both take the field of view as a full width, so the same value can be passed to both. The summary's fringe-rotation limit uses the distance from the phase centre to the edge, i.e. half of it.

Build

Install uv, then:

uv sync
uv build

Stimela

_include:
    - (skarabina_cargo):
        - skarabina.yml

my-recipe:
    info: "Print a flagging summary using skarabina"
    inputs:
        ms: MS
    steps:
        flag-summary:
            cab: skarabina
            params:
                ms: =recipe.ms
                summary: true

Metadata

Release files for skarabina 1.0.24

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

Source distribution (sdist)

Source distribution for skarabina 1.0.24
File Size Uploaded Provenance Actions
skarabina-1.0.24.tar.gz 489.8 kB With provenance Details for skarabina-1.0.24.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skarabina 1.0.24
File Interpreter ABI Platform Actions
skarabina-1.0.24-py3-none-any.whl Python 3 none any Details for skarabina-1.0.24-py3-none-any.whl

Total release size: 655.5 kB

Release files / skarabina-1.0.24.tar.gz

Download URL skarabina-1.0.24.tar.gz
Size 489.8 kB
Tags Source
SHA-256 checksum
How to use checksums
406bcc7a42a19d26085391614814a32168a6652f173d96b5a854fa319996aab9
BLAKE2b-256 checksum
How to use checksums
1ec643f04fe9408b00c2d836ae4757c2e556a30958abfd6629328cf3f3dccda5
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 9, 2026.

Transparency log

Release files / skarabina-1.0.24-py3-none-any.whl

Download URL skarabina-1.0.24-py3-none-any.whl
Size 165.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5ef2c93a4718dab4ae652725ca35f73e2df4b958b6c1aaa4bb82679bbd2ffcd
BLAKE2b-256 checksum
How to use checksums
a4b6bf4c36ab3c5e48f8fe81d3ca11d6bb53e4b6b192f776e7f832091eb187f0
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 9, 2026.

Transparency log

Security for skarabina 1.0.24

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 skarabina-1.0.24.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 9, 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.

Release history Release notifications | RSS feed

This release

1.0.24 This release

2 release files Full provenance

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