Skip to main content

AVICA: Automated VLBI pipeline in CASA

Project description

PyPI - Downloads Read the Docs GitHub commits since latest release (branch) PyPI - Version

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.4.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.4-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.4-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.4-cp313-cp313-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

avica-0.3.1.4-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.4-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.4-cp312-cp312-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

avica-0.3.1.4-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.4-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.4-cp311-cp311-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

avica-0.3.1.4-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.4-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.4-cp310-cp310-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

avica-0.3.1.4-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.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: avica-0.3.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 a5f6a8ac73a96d6135ef4fee16d83a0eec6565d660b7a470f24157ca1309ee89
MD5 185cec085e4fc147d051b7cf5d2976d1
BLAKE2b-256 1a4047f2e4ed547197df8cb0c3ec4b76f678a81999a91476056fc9d6fa711eca

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4.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.4-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2cd671b7e79db14acb385ded39bf3319d0fbe69969f8c64dd33e667f23871d55
MD5 c0cf679e5c4fc9ba5f67b6ed97c5700b
BLAKE2b-256 2bd2494818222523870b2ac76e43bce6d94fd55ab6247931becb59688a67e066

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e50c27c96c1473e324eb3f848a0420bd2e38a70c883a1a7259e62eb25050b549
MD5 8a0fa1d54a41005d94a62047d871ca0d
BLAKE2b-256 a185f95e1df8755853f3c91c0f6331087a167d5ac8475239c6c4916e288237ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a670781b3b01e8b64b150d29ab588faa724c9a12771926554a497cb8a0c98377
MD5 82bd4685fe8d5989b4e27553635c48fa
BLAKE2b-256 97501f1f5cb3b914bd36f126e586a6b7786e1f5174770440b808cec01dc38709

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b8cd4115729d22c57c764ecbaf469ec34c6d837b18082c6d931fd0d0ba7c5a50
MD5 b7c732e7092ab574d5cb5eaf5d557b17
BLAKE2b-256 08a74aae7412e70015fca3cfbdee2ec190c5859704857283182ac18995475d08

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 26424721fcd284d84fba2d3fa559742a063c88c40c01715df77dbf535d5b89b7
MD5 73183343b4d5f23dc60d9004d9b74895
BLAKE2b-256 586f0ada179d1426acc5940fa812ace8d3805b43c1ea702bee9520b34991ad5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 051861793716c130610b2228b2c7377129b11c1e60ee6beeafb189056130527d
MD5 d7f1c63c1c094ef8ba0a5c6dfcca5dcf
BLAKE2b-256 20f63f23c92a8453cb9a026cb2e115c8181fef6c9814761214851bac19af6e02

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cf0f9369c6ea143a797a23bd594a1092961ab7a9db5d45abf928b24969f77323
MD5 149fdefce3ac4094e87b6d6d577e3962
BLAKE2b-256 fea4f6cbab7ffaada733ab67506bc892c1eb9f175c579610f3c89f4aa116e30b

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e3cdb44e87c0808189e782153936690d37cce0f0462fd324caaa93dc454087a4
MD5 e31e364f7a12a90b84e0149675c67f2a
BLAKE2b-256 653a19764239d3b07b6f2fac1bb2fd04197440b9561b410d960a2438a462ed82

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fd93a127ff187ddc4f173361bb545d269370317348d972c49914520ea3324dc
MD5 3d1f75290aae9e7dbe04969e32471391
BLAKE2b-256 ffe5756dab586933398b991807d01ecce830b700a62bdf90ea4e55128c8c5294

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1e4f6c3427e29fa5b71cff1982c6a125d746846aa2d9c69af7a106cf1cc223c5
MD5 165cd72cb645ceff6153ffa5ac740655
BLAKE2b-256 956a5e21bf43ac1c1a73c99aeed1059da6718936d52176cf79cd22a25697e335

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf8d69b8b9150b651c89c27b810f210b30e76d6d5a427d66072e5264624ce7ef
MD5 784714cc84d9bf5ce8b9ca7992ade6ed
BLAKE2b-256 281e0778b78e22db63e931501cfa0dd75121508abc1d129df809a1a0e7767407

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c3cf74106bf395f9205417b98736dbc8252e9c3213e28d887f44645bcbb52a7
MD5 243214689c7821b7a456c6b389911dda
BLAKE2b-256 66a243c51fb411ef8344321d3f25094bd2bb5807a099a433e0dfdbfc51a4d889

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5f6a803a4205179c1f740938497d884c50e7b036792a50e8bb2299121c381ff3
MD5 bd1ff9b547382b8a36d736494b5282ef
BLAKE2b-256 8826c5c53831f7376460a75f02d68b97dd57f042451086ce66d0214c06bee681

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b60fb3fa7eb85dde0bcdd2652cf5c786a35d78d9f1d046120481572782699759
MD5 09c4612d95f140bf4147d8fca9233968
BLAKE2b-256 9fd18a57a171fd712013b7aeec78444d87572059ad09746882a95184d1d41de7

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for avica-0.3.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75d7b5dd670de9932ba92e6c0edcc54f0cdc2cfac2d96e992efb44faf4c0ec99
MD5 b9032a9b9268ce5b807fcfae50dd5228
BLAKE2b-256 f11260c1a225ed8c9670bb0620cf2ccd717982773517d5be5f530b02cce49a2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for avica-0.3.1.4-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