Curated cargo of TART radio astronomy packages for stimela 2.0
Project description
tart_cargo
Curated cargo of TART radio astronomy packages for stimela 2.0. This allows the use of TART telescope tools as part of the stimela 2.0 radio astronomy pipeline.
Author: Tim Molteno
Based on the tart_tools package which does most of the heavy lifting.
Installation and Use
GitHub Codespaces (Easiest)
The easiest way to get started is using GitHub Codespaces, which provides a pre-configured development environment in your browser:
- Click the green "Code" button on the GitHub repository page
- Select the "Codespaces" tab
- Click "Create codespace on main" (or your desired branch)
The codespace will automatically set up Ubuntu with Python 3.12, Apptainer, and all required dependencies. Once ready, you can run tart-cargo directly in the terminal.
Local Installation
You will need a Linux or Windows computer with apptainer, and python installed.
Linux
Most linux has python preinstalled.. Packages are available for download from apptainer.org. On recent debian
apt install apptainer squashfuse fuse2fs gocryptfs
Windows
install the Windows Subsystem for Linux (WSL), open PowerShell as an administrator and run the command wsl --install. This will enable the necessary features and install the default Linux distribution, which is usually Ubuntu.
To install pip on WSL, first ensure that Python is installed by running sudo apt install python3. Then, install pip using the command ```sudo apt install python3-pip``.
Use of tart_cargo
then create a python virtual environment
python3 -m venv myvenv
source myvenv/bin/activate
pip install tart_cargo
This should install all the necessary dependencies (including stimela).
Then create a stimela recipe. An example is shown below...
#!/usr/bin/env -S stimela run -l
# This basic TART Stimela 2.0 processing pipeline
opts:
log:
dir: logs/log-{config.run.datetime}
name: log-{info.fqname}
nest: 2
symlink: log
_include:
- (tartcargo):
- tart2ms.yml
- tart-download-data.yml
- disko.yml
- disko-draw.yml
tart-image:
info: TART imaging using stimela
inputs:
tart:
dtype: str
required: true
info: "TART name (e.g. mu-udm)"
outputs:
ms:
dtype: MS
default: '{current.tart}.ms'
hdf:
dtype: File
default: =STRIPEXT(current.ms) + '-vis.hdf'
svg:
dtype: File
default: =STRIPEXT(current.ms) + '.svg'
assign:
api: 'https://api.elec.ac.nz/tart/{recipe.tart}'
steps:
download-hdf:
cab: tart-download-data
params:
api: =recipe.api
vis: true
file: =recipe.hdf
create-ms:
cab: tart2ms
params:
hdf: =steps.download-hdf.file
ms: =recipe.ms
clobber: true
single-field: true
rephase: obs-midpoint
disko-image:
cab: disko
params:
ms: =recipe.ms
HDF: '{recipe.tart}.h5'
healpix: true
fov: 170deg
res: 0.5deg
lasso: true
alpha: 0.006
l1-ratio: 0.02
project-image:
cab: disko-draw
params:
hdf: '{recipe.tart}.h5'
show-sources: true
SVG: =recipe.svg
You can run this recipe as follows:
stimela run example_recipe.yml tart=mu-udm
This will download data, and form an image from the specified TART telescope.
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 tart_cargo-0.3.9.tar.gz.
File metadata
- Download URL: tart_cargo-0.3.9.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abb70f1fc3afc2016ffd7d6c921311610eed064ff3305c9eb4b59ec0f2508f0b
|
|
| MD5 |
45f20984223a8e4e15f97fee5e0e6094
|
|
| BLAKE2b-256 |
92eaa2f6c200df93eab38112a3e1b86efbf906c6e274901c0d53d5e81c995488
|
Provenance
The following attestation bundles were made for tart_cargo-0.3.9.tar.gz:
Publisher:
deploy_module.yaml on tart-telescope/tart_cargo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tart_cargo-0.3.9.tar.gz -
Subject digest:
abb70f1fc3afc2016ffd7d6c921311610eed064ff3305c9eb4b59ec0f2508f0b - Sigstore transparency entry: 660909029
- Sigstore integration time:
-
Permalink:
tart-telescope/tart_cargo@8dd7c2adf00ba17c2fe5d8a721003a2293c5281b -
Branch / Tag:
refs/tags/v0.3.9 - Owner: https://github.com/tart-telescope
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy_module.yaml@8dd7c2adf00ba17c2fe5d8a721003a2293c5281b -
Trigger Event:
push
-
Statement type:
File details
Details for the file tart_cargo-0.3.9-py3-none-any.whl.
File metadata
- Download URL: tart_cargo-0.3.9-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc83d54188ea89c7b6c32a7ce622d7d8c71828e824033fb852660b7b4d8fdff6
|
|
| MD5 |
442a959b4be9432c0d5363a46af6027b
|
|
| BLAKE2b-256 |
b7a01011e9699ddfb2292540f4535dc9f4802e9be54200b406bff554f7cdaa88
|
Provenance
The following attestation bundles were made for tart_cargo-0.3.9-py3-none-any.whl:
Publisher:
deploy_module.yaml on tart-telescope/tart_cargo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tart_cargo-0.3.9-py3-none-any.whl -
Subject digest:
cc83d54188ea89c7b6c32a7ce622d7d8c71828e824033fb852660b7b4d8fdff6 - Sigstore transparency entry: 660909030
- Sigstore integration time:
-
Permalink:
tart-telescope/tart_cargo@8dd7c2adf00ba17c2fe5d8a721003a2293c5281b -
Branch / Tag:
refs/tags/v0.3.9 - Owner: https://github.com/tart-telescope
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy_module.yaml@8dd7c2adf00ba17c2fe5d8a721003a2293c5281b -
Trigger Event:
push
-
Statement type: