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.25

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.25
File Size Uploaded Provenance Actions
skarabina-1.0.25.tar.gz 490.8 kB With provenance Details for skarabina-1.0.25.tar.gz

Built distribution (wheel)

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

Total release size: 656.5 kB

Release files / skarabina-1.0.25.tar.gz

Download URL skarabina-1.0.25.tar.gz
Size 490.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bdd8a0046a3dec61cb9ecc997a275c06ec0629bff691d8ed1635b217985beb90
BLAKE2b-256 checksum
How to use checksums
a9fcbe4bd87e8883a8ccbb13ca668acf5e0b0a392d7dff86c86589f070d0b9f4
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.25-py3-none-any.whl

Download URL skarabina-1.0.25-py3-none-any.whl
Size 165.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32da381c70763c696a911aaa2ec61ad7e4f0ac2aac5c59ef57f5eb993afafe98
BLAKE2b-256 checksum
How to use checksums
c6775184892c2db78b268168c07a1bc78004907e0dd9ac26be83ef82aa444812
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.25

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.25.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.25 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