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

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.26
File Size Uploaded Provenance Actions
skarabina-1.0.26.tar.gz 495.6 kB With provenance Details for skarabina-1.0.26.tar.gz

Built distribution (wheel)

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

Total release size: 662.0 kB

Release files / skarabina-1.0.26.tar.gz

Download URL skarabina-1.0.26.tar.gz
Size 495.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b32c69a1dbe12390233c8d7e3e3b6de98a854ca452f92301fea5c3a4c101bdb2
BLAKE2b-256 checksum
How to use checksums
ce63388f90265cf73dddba24eb5b56777250afe398ce0fe4e2fb4360c6450436
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.26-py3-none-any.whl

Download URL skarabina-1.0.26-py3-none-any.whl
Size 166.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bb45d7bce9540c9585448e8b4d92a2147488ebe1ca5a62f65e1efe444e3edfa
BLAKE2b-256 checksum
How to use checksums
4adbdddb593ac6980a9a454041ef5844900e4bd75b7dfd7269efa2c908160ef2
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.26

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