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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

avica-0.3.1.2-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.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: avica-0.3.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d85885fe3c9cf2928d990b8af6dbe4a80ac92ed9467f51d14a05dd11a60b00c7
MD5 c71a852c1ad7c46e690962b2b2107d47
BLAKE2b-256 fbffacd3be4f4796cc46249ef6831efd830b2a60621c53dad8782458a245be1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4792fb844fe15bf6a163bb277d5be5349a627a207b35a4835f24a2a95779b71d
MD5 a832226ae32d0fe304380f339fbcd5f4
BLAKE2b-256 b66aab6f65c376f189772a8a91ea6d3fd49e823f731b26214ac584653efe3ceb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bd4155ab95e2284da35ff3c79a0295212f72d69223bc834cb1ec4bba53584dd9
MD5 68e12c37c601dec70ccab02e113de422
BLAKE2b-256 21ae0e0193170ffdb425c6747fdfaf44c479c8a150a61be4cf05804b73350d16

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07664a9077a5a6e107193df9c7003a484fd9e07406e5dcb235a793e8529eadc0
MD5 348ea718675e7ca768b8dc65f94623f0
BLAKE2b-256 25af87a8c8a96b90eeaa4cc91e95bbc2f2b3976bbd811b4c20dc88b76449df0b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4c223f1834266b38c195d75f6ca5cf248e49650620d86ef08749e1b7d55be0a6
MD5 ff994924d1bb8233b5e3c1a484bd04d4
BLAKE2b-256 9d10a1aa0a0edc07653b0164000cf7b7526fb90aac575b4795f72d1db90dbe78

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ecc79a1ef4a3cd2b228f27a509815ac19112691ac428a58408304697b986bde1
MD5 85a9feca8302d2e18c8e7c7a64392ec4
BLAKE2b-256 6efa08dee9b8fcf4ea4a4b5d50af363aaa768dbb7dbe8688ac9d36932b8f6133

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfef93b35b632d6cb7d3db3b0f646eb2a29e8cb40c75c4a6edda458c4427d687
MD5 27e84fd3ffd64dfab0959e7c7bb4b2f1
BLAKE2b-256 4939d29195035b20ca990226351ab75398020365d3f64351b954b97b4ba1ed50

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8f871b8baaa795cd842f3add195159975154ecff2679f7b4c5ac30ab6fff5beb
MD5 f06b147d3f6704ace312bfa248e502c8
BLAKE2b-256 e3f1bd5ad2d7e7028117cdf2bfb7137b85f6b0273f9a02a65fb79e6ffd3eccd5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0e7f4eebff8f0f9e1fd0fe31c9bd01d619ca5caacfb4207efb6d534db1898726
MD5 ccbdc3d2d914001e459cd5b3130c51e5
BLAKE2b-256 406f08c714c4d7d87d064d8830d940a2089c45d44141e1979e5e3579afe8d08a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2547788fc9cd2ff4bd5e69a3ce25a108ae00c4be0df78189ecd69e4d75489c48
MD5 748e56059214888f361607643998c684
BLAKE2b-256 2d6f577257b1a1e2899dba10f4f33b86d4c468e840a8fca29cf5a60723eeacc1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e7dbb0b000c8b6d6d2c78d9e08550b663617524b0ba23ede85be02a18ce2cc8b
MD5 2aae42812317e51576654604020bda04
BLAKE2b-256 6f1d2a058973ca3530b0bd72165839d21f41e8fce37164cdfb753718af6ecddc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 831be92284b4ac13f81b563a515dc78ce9d39ef3affb1e96620f3f874d4624ea
MD5 6449ca7db9f63609da8266c079745557
BLAKE2b-256 0bf46f6893db693b3f0ac58c45b7c6e0c56146a6f39098db0d32e49296a0a8c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e611cf662d9f187e6cd07fa10f613434a4d9df943704fd34397757db12315ae
MD5 59b729c4919a845f4f95ed3a022bb659
BLAKE2b-256 46c66ccaa644360495459a199067253fe8c29de3edbe5a122a2e90da113d71e6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3479e00e23e8028a1de604eb4d0276c7b72136c27ad5ef793d204aba27d24868
MD5 6acbf0ba4cfe671e3cd929edc71e3f8c
BLAKE2b-256 4a950d2b01de9cd04c8667383ef6dd032d95638d9f8cc71481c534feb4cdb252

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8734aed288a88f876abec749544b082ab583feca998db2f3d00888ec8ee2f164
MD5 2fa34c1c6c95c9f2eeff6063d54c4e29
BLAKE2b-256 ae6cdebc4bb4b52d85d5b8a0f6f6903339f134c0ef09a7858d195b9cc16f7f70

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for avica-0.3.1.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 131764e96c89344b0644de6db7529dabdd206ad9722be43a8f1995f5a019ed9f
MD5 5e458b3a872b555107d5fc8143b27645
BLAKE2b-256 eaa4b0592253b6cc5ef0582b4ee823db7c05b0e34993edd92b592b5d32224739

See more details on using hashes here.

Provenance

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