Skip to main content

AVICA: Automated VLBI pipeline in CASA

Project description

PyPI - Downloads Read the Docs GitHub Release GitHub Last Commit

AVICA: Automated VLBI pipeline in CASA

Submitted to A&A

asciicast

Demo of the AVICA pipeline running end-to-end. Documentation : https://avica.readthedocs.io/en/latest/

Installation

Requires Ubuntu 18.04+, Debian 10+, RHEL/CentOS 8+
Python >=3.9

The avica package is publicly available on PyPI. Installation is recommended using uv or pipx within a isolated environment:

using uv

uv tool install avica --python 3.10

or using pipx

pipx install avica

or using pip

pip install avica

Note: it is recommended to use venv for installation, if you are not using pipx or uv.

Manual

  1. Clone the repository to the desired destination.
git clone https://github.com/avikhagol/avica.git
  1. Install using pip
cd avica/

pip install .

Usage

Since the pipeline's calibration features rely on rPicard please follow the linked setup instructions first. Once rPicard is properly configured, you only need a minimal avica configuration file to get started. (see Configuration)

Pipeline

Usage: avica pipe run [OPTIONS] [STPS]...                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                              
 _______________________                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                              
 pipeline steps:
 
 -  preprocess_fitsidi
 -  fits_to_ms
 -  phaseshift
 -  avica_avg
 -  avicameta_ms
 -  avica_snr
 -  avica_fill_input
 -  avica_split_ms
 -  rpicard
 
 ________________________                                                     
 
      
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│   stps      [STPS]...  steps for execution [default: preprocess_fitsidi, fits_to_ms, avica_avg, avicameta_ms, avica_snr, avica_fill_input, avica_split_ms, rpicard]                                                                                                                                                        │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --f,--fitsfilenames        TEXT  fitsfile names comma separated                                                                                                                                                                                                                                                            │
│ --t,--target               TEXT  Selected field / sourc name                                                                                                                                                                                                                                                               │
│ --configfile               TEXT  config file containing key=value [default: avica.inp]                                                                                                                                                                                                                                     │
│ --help                           Show this message and exit.                                                                                                                                                                                                                                                               │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯


Manipulating FITS-IDI

To check known FITS-IDI issues run the following:

 Usage: avica fitsidi_check [OPTIONS] [FITSFILENAMES]... COMMAND [ARGS]...                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                                                              
 validate and fix, known FITS-IDI problems                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                              
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│   fitsfilenames      [FITSFILENAMES]...                                                                                                                                                                                                                                                                                    │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --fix     --no-fix       [default: no-fix]                                                                                                                                                                                                                                                                                 │
│ --desc    --no-desc      [default: no-desc]                                                                                                                                                                                                                                                                                │
│ --help                   Show this message and exit.                                                                                                                                                                                                                                                                       │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯


Example

avica fitsidi_check VLBA_VSN005412_file3.uvfits
+--------------------+---------+-------+-------+----------------+----------+
| hdu                | fixable | total | fixed | problem_code   | affected |
+==========================================================================+
| ARRAY_GEOMETRY     | 0       | 8     | 0     | []             | []       |
| ANTENNA            | 0       | 16    | 0     | []             | []       |
| FREQUENCY          | 0       | 8     | 0     | []             | []       |
| PHASE-CAL          | 0       | 12    | 0     | []             | []       |
| PRIMARY            | 1       | 10    | 0     | ["extra_byte"] | [""]     |
| SOURCE             | 0       | 8     | 0     | []             | []       |
| FLAG               | 0       | 12    | 0     | []             | []       |
| UV_DATA            | 0       | 8     | 0     | []             | []       |
| GAIN_CURVE         | 0       | 8     | 0     | []             | []       |
| SYSTEM_TEMPERATURE | 0       | 8     | 0     | []             | []       |
+--------------------+---------+-------+-------+----------------+----------+

To get the information on the observation run the following:

avica listobs [FITSFILENAMES]... 

Configuration

The pipeline configuration is defined in a custom file with key=value defaults to avica.inp in the current directory. See the example for a minimal configuration. To store default values persistently, create a avica.inp file in your home directory (~/.avica/avica.inp) using the following command, the default value is used if no avica.inp file is found:

avica pipe config --default --inpfile <path/to/avica.inp>

or

avica pipe config --default key=value key2=value2 key3=value3

Attribution

When using AVICA, please add a link to this repository in a footnote.

Acknowledgement

"AVICA was developed within the "Search for Milli-Lenses" (SMILE) project. SMILE has received funding from the European Research Council (ERC) under the HORIZON ERC Grants 2021 programme (grant agreement No. 101040021).

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

avica-0.3.1.5.tar.gz (1.9 MB view details)

Uploaded Source

Built Distributions

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

avica-0.3.1.5-cp313-cp313-musllinux_1_2_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

avica-0.3.1.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

avica-0.3.1.5-cp313-cp313-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

avica-0.3.1.5-cp312-cp312-musllinux_1_2_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

avica-0.3.1.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

avica-0.3.1.5-cp312-cp312-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

avica-0.3.1.5-cp311-cp311-musllinux_1_2_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

avica-0.3.1.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

avica-0.3.1.5-cp311-cp311-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

avica-0.3.1.5-cp310-cp310-musllinux_1_2_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

avica-0.3.1.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

avica-0.3.1.5-cp310-cp310-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

avica-0.3.1.5-cp39-cp39-musllinux_1_2_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

avica-0.3.1.5-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

avica-0.3.1.5-cp39-cp39-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file avica-0.3.1.5.tar.gz.

File metadata

  • Download URL: avica-0.3.1.5.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for avica-0.3.1.5.tar.gz
Algorithm Hash digest
SHA256 13a09c0b6d318e417646f7ebb2d81c441b57f4271810f96944ea23701f19a8c4
MD5 1bed10b306b6138ba82f4bc1eb967688
BLAKE2b-256 75c2901fc4b89075195efe7e488dff671a4b678e8a0b3174fc68a503ed2d76e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5.tar.gz:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b4c579b8825bfd0ac72e42644e8e2812d875750d921710f4496a656803aac5a8
MD5 210d86720f0eace12625285ad6418ca2
BLAKE2b-256 a6f3627612833bc733fe067f283d775c975f502ea66258a7c4f262533313e5ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f87453a0d28c680de280a4d5e79efcf66c1954f6f25729a10945bf94c29a085f
MD5 21e5be58f39e3c585e341d84e5e4b2cc
BLAKE2b-256 faeb30f439e8393145019c0e5f408756d0c87375791ddbc7676c4638fe50565b

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f57d56d4360956e5d317c7a0dfec9e9e224c851b467ecce98e19bc327368100
MD5 3c907272482d3243c153b8678986526c
BLAKE2b-256 c80398b7989a14cdc48b3ed2e4c4b23e818bac40645a3f216b1f60db0c7e8fb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0edfa96bfda1f60b168d01aea2b20267cb91f19ba3230638699edc03a25fa40a
MD5 ec3c48495210a3b95aa9eed896f3b7d8
BLAKE2b-256 e6cce3400c6efbb25bfa96a491e0d2c247ab83f61092765ce1ba8f18d4b975a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 28de57111e09f5eeb742e758db3945f56a3cee3b0f83fffa1030ce05c53ad885
MD5 501e443f8fb3fd905d35132cd0cc9e9f
BLAKE2b-256 f20fb662aa329cf800226a8726f1d69a637499d6e44dab46dfb72f1b141cd2fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1aa0bb8ab51c7fb9b7903da69a88e9abff0609293312d077fac7a1920a2c46b3
MD5 d15586b969cf55cb8d82197cf828c335
BLAKE2b-256 b91cd25fbdc10d034177a52a9b581e608826e3820babc47e2cd9700cdf7c99b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 624794345df489c737ede5537c57f85f21ecd46e787010544da90153bb77e401
MD5 58c94bf6149a29794670ece7ef138638
BLAKE2b-256 d7000c379619285aeae5407e78fd4a2075f590bf953699d20fff563f2663572e

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 af803437cb1da029274d22784634ca6cba9486693466f2b4c5c46eaac97b13e6
MD5 1828f4d49b4f5f3d6e1d5d406095b8ee
BLAKE2b-256 230e8c323670a4dda4f840e7b07891fe94b025748a040323bd520eda235b128d

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f83948138a0d52f78eb150c6d62f2b832e00e6ed074f116b0734bda1285e2d8
MD5 37b2571948b7ee54c0dbeaba6034f828
BLAKE2b-256 70f01bb7f7850c11b88f5d96fa873f542d2efb5a6449fd7bf2a31ca2902ec02f

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 99f53b9cf6cfc8dd99907f76d0073f0fdcf294d64109cf4e73c2692c341925e0
MD5 f346268e814d00ebb1ca05688b0e18a1
BLAKE2b-256 13e58408c16a1f6ae88670a5245ea0327b308d4d1e929cf494ec2096f9934b2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp310-cp310-musllinux_1_2_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 41c137b561fe3bb5cad9f59a30829e2a2ab4caa69ade817eebdf652deb8980cd
MD5 eb5e05043d67c167b89d94e0437292dc
BLAKE2b-256 d3d55cef4cd2cd39f9fc761712ed0ff26ac26506ea658e12f446c21b2d3f6ca3

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47c962f19f5d8fd354a57643c8886403f89095f412eb156798a18565298123f1
MD5 3d2c01d6fa29600381cadecf417b9fd3
BLAKE2b-256 cf9b45c0ec8b1f6ae96dfe144f7dfba69d92f7ce9b5c378325e5116d6d47c96d

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fc63c4528859df5e3aa612e301b898899fbb5e8293cb8537887a0d42ef6c665d
MD5 5c045694babecbc19186b157ec2df011
BLAKE2b-256 8d54b10926b9949935b755a1e8609cf3cb439c10db5c497375c4101625a40a29

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp39-cp39-musllinux_1_2_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5ea47cf649ee1c0b03f9c65b880e7911de76f2e1be1a78472ee12b0351f14cad
MD5 40b3b30cb4eee252967f15576ad5b10a
BLAKE2b-256 7cfba37961d833e23a1e4f825bff2abba9c8ecf51fb6d5d61ecae34cd96f8263

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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

File details

Details for the file avica-0.3.1.5-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad27beba60682d08d1dee455c35456e03694ccd708030e61f1752fb39ae6941c
MD5 443720183ee7ceec02fe7c7d74359b2a
BLAKE2b-256 9e93038ae0bab508ff58c2abdd8fbec4fc9a5076930a98c5d0f931edd4f4014a

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.5-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: build_wheels.yml on avikhagol/avica

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