Stimela cab definitions for skarabina
Project description
skarabina-cargo
Stimela cab definitions for skarabina, the 1GC radio astronomy RFI flagger.
Provides two cabs:
| Cab | Command | Purpose |
|---|---|---|
skarabina |
skarabina |
Flag, average, and clean measurement sets |
skarabina-analyze |
skarabina-analyze |
Recommend image size for synthesis imaging |
Install
pip install skarabina-cargo
Requires stimela ≥ 2.1.2 and the skarabina container image (pulled automatically by stimela on first use, or build from the Dockerfile).
Usage
skarabina cab
_include:
- (cargo):
- skarabina.yml
my-recipe:
info: "Flag, average, and optimize a measurement set"
inputs:
ms: MS
steps:
flag-n-clean:
cab: skarabina
params:
ms: =recipe.ms
flag-nan: true
flag-uv-above: 4000
time-average-factor: 3
optimize: true
msout: cleaned.ms
clobber: true
summary: true
Run it:
stimela run recipe.yml ms=~/data/observation.ms
Spectral window flagging
steps:
spw-flag:
cab: skarabina
params:
ms: =recipe.ms
flag-spectral-window: spectral-flags.yml
msout: spw-flagged.ms
Where spectral-flags.yml defines frequency ranges to flag:
# Flag all baselines
- spw:
- [850, 900]
- [1419.8, 1421.3]
# Flag short baselines only (uv < 600 m)
- spw:
- [1166, 1186]
- [1217, 1237]
uv_below: 600
skarabina-analyze cab
steps:
analyze:
cab: skarabina-analyze
params:
ms: =recipe.ms
image-fov: 2.5
oversampling-factor: 5.0
output-json: analysis.json
Run it:
stimela run recipe.yml ms=~/data/observation.ms
The output-json option writes machine-readable analysis results for
scripting or downstream processing:
{
"image_size": 8192,
"pixel_size_arcsec": 1.1,
"field_of_view_deg": 2.5,
"max_uv": 34427.18,
"synthesized_beam_arcsec": 5.5,
"observation_frequency_hz": 2052500000.0
}
To run directly without stimela:
skarabina-analyze --ms observation.ms --image-fov 2.5 --output-json analysis.json
Printing outputs from a previous step
Both cabs expose outputs that can be consumed by downstream steps:
steps:
flag-summary:
cab: skarabina
params:
ms: =recipe.ms
summary: true
print-max-uv:
cab: echo
params:
args:
- "Max UV:"
- =previous.max-uv
print-ref-ant:
cab: echo
params:
args:
- "Reference antenna:"
- =previous.reference-antenna
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skarabina_cargo-0.6.18.tar.gz.
File metadata
- Download URL: skarabina_cargo-0.6.18.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0662b35ce507596286852caf46307e9f0000c32be524e09d70ab103c75f9151
|
|
| MD5 |
3d8333fcf6305b47faf8374797d2ea73
|
|
| BLAKE2b-256 |
42f9f4bdf443529215e10628a930f0c319c57790bc0997c4c9d288f05410c67f
|
Provenance
The following attestation bundles were made for skarabina_cargo-0.6.18.tar.gz:
Publisher:
cargo-publish.yml on tmolteno/skarabina
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
skarabina_cargo-0.6.18.tar.gz -
Subject digest:
b0662b35ce507596286852caf46307e9f0000c32be524e09d70ab103c75f9151 - Sigstore transparency entry: 2120623434
- Sigstore integration time:
-
Permalink:
tmolteno/skarabina@5f0d985a131d0a77a41c575d2599e57b37946696 -
Branch / Tag:
refs/tags/v0.6.18 - Owner: https://github.com/tmolteno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cargo-publish.yml@5f0d985a131d0a77a41c575d2599e57b37946696 -
Trigger Event:
push
-
Statement type:
File details
Details for the file skarabina_cargo-0.6.18-py3-none-any.whl.
File metadata
- Download URL: skarabina_cargo-0.6.18-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14b92cd42704680c4c8b8fd4bc44aa17f41f2c7af1657d2c87baa07bb685c7d6
|
|
| MD5 |
2353a47a6614d3abbacc49b9a0659d58
|
|
| BLAKE2b-256 |
4acc2b90b782b55bd78e47ff82cfd70ea114ff0116f279734d878747f1ff673f
|
Provenance
The following attestation bundles were made for skarabina_cargo-0.6.18-py3-none-any.whl:
Publisher:
cargo-publish.yml on tmolteno/skarabina
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
skarabina_cargo-0.6.18-py3-none-any.whl -
Subject digest:
14b92cd42704680c4c8b8fd4bc44aa17f41f2c7af1657d2c87baa07bb685c7d6 - Sigstore transparency entry: 2120623522
- Sigstore integration time:
-
Permalink:
tmolteno/skarabina@5f0d985a131d0a77a41c575d2599e57b37946696 -
Branch / Tag:
refs/tags/v0.6.18 - Owner: https://github.com/tmolteno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cargo-publish.yml@5f0d985a131d0a77a41c575d2599e57b37946696 -
Trigger Event:
push
-
Statement type: