Skip to main content

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

Start with a suitable Linux machine, with apptainer installed.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tart_cargo-0.2.4.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tart_cargo-0.2.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file tart_cargo-0.2.4.tar.gz.

File metadata

  • Download URL: tart_cargo-0.2.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tart_cargo-0.2.4.tar.gz
Algorithm Hash digest
SHA256 3362b042b31fe6ef2788ba7c7d0ee86d3cee119caf98286bb5f5de736e1b3baf
MD5 771e1d8890d9ed4aa2e17a105fe3c87c
BLAKE2b-256 0db356f04155daf8e443461926416967f2fa6e1af2472638165ff5c21b1e74af

See more details on using hashes here.

Provenance

The following attestation bundles were made for tart_cargo-0.2.4.tar.gz:

Publisher: deploy_module.yaml on tart-telescope/tart_cargo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tart_cargo-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: tart_cargo-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tart_cargo-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0fc9f0c5bcd120fb1323f61d5db9982c981786ade1a70a902e1654506b9b2867
MD5 46080729d87733e7ef9ea1cba7333e78
BLAKE2b-256 f54b4a0ca470fa2f4cbe2bd760c0157cbd2a6b4c8f18e2ed0f0b6c9ad2adb8b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for tart_cargo-0.2.4-py3-none-any.whl:

Publisher: deploy_module.yaml on tart-telescope/tart_cargo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page