Skip to main content

AVICA: Automated VLBI pipeline in CASA

Project description

VLBI and SMILE-based CASA Optimization (VASCO) pipeline has been renamed to AVICA.

avica

AVICA: Automated VLBI pipeline in CASA

Documentation : https://avica.readthedocs.io/en/latest/

submitted to A&A

asciicast

Demo of the AVICA pipeline running end-to-end.

Installation

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

Since the monolithic version of casa includes its own internal Python 3 installation, it is best to install avica within a Python environment that matches the casa version.

   
   $ path/to/python3 -m venv MY_ENV_DIR
   $ source MY_ENV_DIR/bin/activate
   $ pip install avica

Alternatively, you can use the following installation method, which automatically includes the necessary casa dependency for avica's internal operations.

   $ pip install avica[all]

Note that you must still provide the path to your casadir. This ensures that the pipeline uses the same monolithic casa version, ideally the one downloaded for rPicard to execute specific tasks like mstransform and importfitsidi within an isolated environment.

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

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]... 

Development

After you clone the repo

$ cd avica
$ pip install -e .[dev]

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.0.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.0-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.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.3 MB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

avica-0.3.1.0-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.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.3 MB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

avica-0.3.1.0-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.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.3 MB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

avica-0.3.1.0-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.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.3 MB view details)

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

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

Uploaded CPython 3.10macOS 11.0+ ARM64

avica-0.3.1.0-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.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.3 MB view details)

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

avica-0.3.1.0-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.0.tar.gz.

File metadata

  • Download URL: avica-0.3.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 c978d741704a8d75c9197cd1e4d9c943e38261bbe1caf0358bdbfefe7529f8e9
MD5 462bc344649eefbdb670025e007d7e37
BLAKE2b-256 775a25eb9bf098f559ce4c052a2116965a64df2f657c6250bdf31efc7b3ba24a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 69f9130a738f83682387301bd625fbe4cfebac04df6527b326986037582ec4b1
MD5 87f37fdc7ddb3e6d554f1ef07539ebe4
BLAKE2b-256 ca3490762ce5260c1d1faceae1c234b70284412bc24373c66a7a67626c36fc71

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0648f84e1d55c4b46de8ad3d4ee0705465bc7b5b799b5a98437fcf777c021166
MD5 c2079548caa40b8a07610453797c298a
BLAKE2b-256 ce0c0354d1e16755c764f11e01630da93b6cbbf4a48785d2413be61981f413dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54020913885bac448d76d476b83cbca86bacedf4b1d233cf88cf048fcd826a44
MD5 2fce2181f22aa70aed18216ae1d80c5f
BLAKE2b-256 931b5c98e0ebb578b7c3bb4b76afac926f9f6b6be0d39b25ff06c3e9ae33520c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bcdec3f3cd8013ec8c354b8f7bfd36e749a933fc17faaac5afe4f03df25ccbe1
MD5 3a6a63a8061d99b03f97706205e6a69f
BLAKE2b-256 7ebf59ca0d343a52efc1e83b373dccc68f4f05cc3f3d673ddbeb2f19078a3496

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9a2c6be2c1d909620bda91be32708ca380d54522f3732d2cccf338b89324cdee
MD5 7a74ea2d61d62eefc0387bfbb649a6cd
BLAKE2b-256 382bc5bca4ab7b5c197a5ba02c34cc189794873c31f14f6f38a622da9fa45f8b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc4ce8f0f76eb67ad41895b85cff27db4941b23e8900ea367c0dfdef9e391590
MD5 791d475bc23395026a3f3102a1b30e27
BLAKE2b-256 dc3e55273d9eddcd108c08ab11bbc9566f6b397135224bab8e09d640cbdb5db4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1dfecfcd3a9c0a63c24f901a5ece9ca6baa07cfa58b11b75991c56ad75b2d4ef
MD5 3d1b88022dc0bf5bd6d6583f310609ed
BLAKE2b-256 7612d07938c7ee67999e83f407745f65c377d7cd2c2611944044aff96dbd59c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b068d2fa662cf0cc9148a091fc75752b40dedbfa7b2118a7da72f21c59730193
MD5 a0972260658a00d195c2f137eb621b4a
BLAKE2b-256 f871409b2b740c1b75927d916a4b8cb477d210cd33d1e8c62b753e6cdfbb2672

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a6f09acb0f2d7c1b3342d073a54039b3ff1a8a5f362c42db58e6d16badc7fc7
MD5 1269723aa47e65b585bf8072d039afda
BLAKE2b-256 3cddbf0bb81e84ba437acd8f177b11e6819dcc2c83ab878b81646d8f5cf97af8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 37a7562d6f5362f1128d3ccb75ff237433d9bf406947b240220b88476ea78094
MD5 4a8854c12b769782e511b6c62459e1d5
BLAKE2b-256 d3f6ce7aee8c1eccedb9c42f4649dd9dc9b4ebbdd0200ea15312682b27856f9e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3b7a9a62f9b390a7fe8658acdd89a76089df10215ae316dc0b8503f4cce4880f
MD5 528c8841d98f61ac0fcb9083cc34cdf8
BLAKE2b-256 3cd10abce930b3c652a57ab6b096e07a3f77a343f4717443bbe9847cd77c5cb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40599138604bc878391d843070b64bf89a296c8db015e4068880828713d83c70
MD5 a95f176a017db59ac291bb8ce2c61a80
BLAKE2b-256 7f00b1cce5f3f4d4538c2816883ac83f3c79489cd5f1c44158bd00eed38f1ac8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d5886c4dad85d1b6685df70cf32af19093787304bb93b3ff7bd8b6a9d878c878
MD5 62c280ce4a63db75feca2e5071640ecc
BLAKE2b-256 0eff6105820b019f1013092e493fd9845e4be2db7c29f9e76d6a410e41dfec04

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fe1961e900569a84e030b1ab6290dbfb4f76782ab5f241af72c57c211ffb7333
MD5 354bf5365836c6bc056298f2bb99e8ee
BLAKE2b-256 8025083677fcd0949399a48528d7bfcecc8db7615409f88a51eed0d6be8a3ae7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 414bd977429d5b91a97ab6848a4d67c9c8f2a9d63cf5eb339ca0f166312aecb8
MD5 e7cc05c2ef8bd97e37f85e0275c4494f
BLAKE2b-256 50747699f85bab08d6fd5b1833cb777553ab90e69f9cdb6307d3d7d4bc0e4fb0

See more details on using hashes here.

Provenance

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