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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

avica-0.3.1.6-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.6-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.6-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.6.tar.gz.

File metadata

  • Download URL: avica-0.3.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 adb93f00fe757cdc807f7ebd8251ead9c4f29e9a425bbd2085fe0af2ce25eeef
MD5 e6f51d52e1e638d39b94be58191ad906
BLAKE2b-256 593ff0afe78aa9451304c08255fca4ea5f8bb48a9ab4e06fb3d2a0fc4391355b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 58911a841bf6487bade8dea38d26756ad75317ea83601ee86141edd9af47250e
MD5 214999f0881fbf5c323121171a178b86
BLAKE2b-256 98d0f804653759668cbb18bd0da581f65ebd1a559e932eca5abe5be1c95a4ba3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 542b0d7a7e9d027ef4ab502d603045e257cab8418a795de2010c3e03972630ad
MD5 853787a41b0308959dec9a18a12af03a
BLAKE2b-256 3bc86688a7df0d71c5e624b254c949fcb19de43779a6afdc96848b3e5f968201

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffeeb6764a5bfccc995a6014ee44d5b8b133a331022982379c6cbe81cadde6ab
MD5 2d8181e19506d0da51c56f8d145200ee
BLAKE2b-256 9581aedb12f27c883d393c3b9675cd61e6e787ec4f67e1a67bbc83900eb3287e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 28b0126ae3828eef2a1916770a377565d14d66dcd6fa1cabb2aa912b036bc9c8
MD5 ded2acf610224703c9071e965e945b21
BLAKE2b-256 fbcd86379ad91cbce25a7b01067a8cc6ed98dcecf76def35268d2e41820e9082

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 41a9e027b3761cc589fdc2845c25931cf87a931d81d1658d3c8de644b477963c
MD5 c02376c301fc0c2a2571a939a510b56f
BLAKE2b-256 294c82a32e3af10f34fa0319187f09591674a2713f3fe97f80bb36845446f6b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1cbfbb37570b86254cadc5fca055fe294ad881782767e21339bcc4a841aa6e77
MD5 e8d7f8c3e109c1e062508c301e3a8896
BLAKE2b-256 ddf2294f2b589cc0a63ed71f83d5ae486bb6c395f610023b29a8a5fe06bfdd09

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3ade96e030b25bec50e7df5aaeb8c5bf8a8adf9b0b9d9b9a354d827e112e7735
MD5 b86c986b649f9fa631c79868226750ac
BLAKE2b-256 227b3d22f6d1ae91082ddc254f752eb2ef3605079f45dade347d2a1b53969296

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 616df150be356a0c02532f1c46017e5f84550c6b9e5fc68a337d2992454de1a5
MD5 a887964eecf7ac039d11d784572fdc8b
BLAKE2b-256 3c988104df887609f5c886375fc93f652dcc37fae4a5ee030dee63caa5c66f3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a82b187673473b65c6a37b3b50f1b6e1dddafa975132aa09a002b76f54541bd
MD5 ffae87c7b2a3037df210a99b26920da6
BLAKE2b-256 06017ff9e4670669453e46292ff6ed987c7d939922fba1f8c7f46e36e6c0ed49

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 eec002e21aedf060ac5a2359e3a359aae271c127691f065010d73d600b4ed462
MD5 2da57c7ac4dcaf0faefe36790b08eec4
BLAKE2b-256 bb1f49ed4348506f2be398cbcc6746fd37d905641159c1fad27466ed0db90cc0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 76d96fb0e8b1c6dd0ecce60ec74fac46d98a26d8e1392ab41c9bfe8e328e62ae
MD5 e821b99c5cc3009946d9a8a3f202fa86
BLAKE2b-256 4764e4fc9ccadc5d21afadf87ee395aef06e843e60c589e8e9d840b5e4d1cc3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03cc770ce25d79a7425f5528db817c9e02b76a78fd1dbddd025082f28fd86336
MD5 7da1e90ecc39033e34b1427ed6dfbc7a
BLAKE2b-256 34745fc54bd4df3d426b48507d377e9cd85ad5c1170303bba8c34a57b5043537

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9938bcec864cbc37d6ef14ff5fbcb71558223d8f020d1700d0d8637c5ad717d5
MD5 beb8822394b2446fa9cfef2c37ced81d
BLAKE2b-256 956587ad066ecf97cd833cc390a682741e09ffad7dc846d369d389c3c571c790

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7b4005899df1f03fae7ad110ba1b63497328ce5786731928279eaaeeef93c8ea
MD5 120b0a5c554c960d7d271f2e2a54dc13
BLAKE2b-256 267be048ad6caf701659502427410e1f98724f69519b5940719a8d92e1d08077

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ce5d98898e5bc7257e8bf1206999b0a1997f77c8a9cc38feb7c19085cc5e060
MD5 8b62a3aaf345cbf89cbc27181000fc15
BLAKE2b-256 4fe1fc4822361e3b15677a0a804aefeea0cbc5129b2a7ea25688231fefa3e34f

See more details on using hashes here.

Provenance

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