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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

avica-0.3.1.1-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.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: avica-0.3.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 17e7f39057617f1212f00e40d0f4aa6ed782f8573888acd10f2d643298a64dc2
MD5 14df627a425eb23ad4f8a62db303a988
BLAKE2b-256 853c42a71301e0ac5ccc00e0d7b4fa5f9d25a8b527fc7d870d1c98f42b63975e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 13d44ef3761837b27e92e976016e1a1bbd572ce58fed274cb7f55fe5b161a17a
MD5 84610ff9e7c8b1920e25bce319142230
BLAKE2b-256 ff8691ff14115a1c8571db2cbae7aca14b9ed2321b3145865ad5fb5c848a535b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 550614b811a6dc98227fbc21e85e595c8a2c96a347bc7e26e40120cbaf509552
MD5 66941c85c0b1a26837829b7b29919f58
BLAKE2b-256 4740b0995c6d2d2bdac314a716afdaddcbec031849b5de6b4da2f07e4d410d7e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfb148379792bdcf06dc17b5a0458d57d782a5b210c3aa20f4d3fa0e4f939411
MD5 07dcfe4fa01a241796692918634bb156
BLAKE2b-256 811a3b62c7c1d10c777924ffcc732cf03fb8f94ccef626dec1e1a4e1589761b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 96be1c6eaa4928cd797628c29835ab43981f5c50e15be59e599c1757c4e8a72b
MD5 61c3df0b393c7a5af238a6618e6bff95
BLAKE2b-256 1273fae4915e7ae761a1a4b241348f92947d2a9635c7367a218c3414ff63ba2c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4d7f1ecad932322daaba5f2928fec7cc805647fcc8d0849cd48a80e2ae60734a
MD5 5dd6b315a9986bc256ace25cec56f85a
BLAKE2b-256 d6923647f0687699d153d6259ec23ea0c11be8e7e6e4e5a588dbf32c731221b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4beabff5f1be487d447fdd6341a820d8809b18f8e78ca13d3a58c97ddcfb8d00
MD5 3dc9a9045ecf25cbff5262a92c865860
BLAKE2b-256 94266ef1532a58110a4674f28a0ea0e9bcc41b349abd1bb89266fc959ac94adb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4dc22da69f0c3a2e96162138a867b89dc30cfa3f2cf8e960d67ea90cb2fd5000
MD5 9fd22ca42ead5af5da23935a3d4e8e52
BLAKE2b-256 be48952e31751e172f327619ae329c51ee27ba238c36ef0d84f0865efe1d5388

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1cb85a806b4c74ba721d271e2e1709e5e392f2aa256016617b171b9d4c098640
MD5 20e72498c99a876b033cb2619892badf
BLAKE2b-256 9b02e65d567c06469dba51f98005a372309a246f660ece95b9b231f671915475

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fcf09aa38ba5cce5f81a2141c149e8c92596b67475f59856846b8535a795755
MD5 815313875be35dfc9c027d58555fdf32
BLAKE2b-256 d26d63597ab3967a29413df7262835df0b1081001e7329d1b61e09a0a957935d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d376edb9b8fca04ba13c333948a45fb2e52c23251ed617057983cbc9c6544591
MD5 cde662a30c5ce80d8f2c81c6a4f6a6d2
BLAKE2b-256 6846eadee7bef4a9250f4794f311f1ca6c7a1df37e5148966f3b7f1454e4ecd6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d6e9834e83d683635b90241c772657200b101c7824596e6c86fbae7e55073453
MD5 8be4069086667d480bbe3cee6436aafe
BLAKE2b-256 fab346609c5d2e8eb08d39f72599bfa62026be71c8433aecb9cc5ac195cb906a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffd448cc03d3806743f17803e169e6cc0c5e9c725acddbbce965e47dbc9526ab
MD5 2985e7225984eda982924f8d9fe4caae
BLAKE2b-256 604b28977e362fb25345f355eb8069c804d6038aeb9f87fcf72dc8f4e1a21d93

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bbea8b2facc5cc7a4860ef02d97fae43563c9e11495037ec58debf1cdb2ad9a1
MD5 89768f801481b097e67c3ea4c5c05eda
BLAKE2b-256 f4e87b16433e6889af6d616235b8f9d98cf4092a05437797ad489411276eac88

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 845c5e93048a32c608325ebe402b0a74faef32cc70ec0b90e2315598512848fc
MD5 efbee7ce0647691b9bfff98c6c35c3dd
BLAKE2b-256 904e391fc5edac9b469c2fd85deafe43c75923ae77b719e6f21e97e78e942919

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e7786fee65abb2665f988ff7195e37720c8b97032b168a0900cc22f19db10cd
MD5 9222c62539ff8f2a3d00dbee87cfca2a
BLAKE2b-256 43f312ec4ece9551b411facaec19698a3095227998e598340e3b828b8c15c285

See more details on using hashes here.

Provenance

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