Skip to main content

Simulate radio interferometer observations and visibility generation with the RIME formalism.

Project description

Pyvisgen is a python implementation of the Radio Interferometer Measurement Equation (RIME) formalism inspired by the VISGEN tool of the MIT Array Performance Simulator developed at Haystack Observatory. The RIME is used to simulate the measurement process of a radio interferometer. A gridder is also implemented to process the resulting visibilities and convert them to images suitable as input for the neural networks developed in the radionets repository.

Installation

You can install the necessary packages in a conda environment of your choice by executing

$ pip install -e .

Usage

There are 3 possible modes at the moment: simulate (default), slurm, and gridding. simulate and slurm both utilize the RIME formalism for creating visibilities data. With the option gridding, these visibilities get gridded and prepared as input images for training a neural network from the radionets framework. The necessary options and variables are set with a toml file. An exemplary file can be found in config/data_set.toml.

$ pyvisgen_create_dataset --mode=simulate some_file.toml

In the examples directory, you can find introductory jupyter notebooks which can be used as an entry point.

Input images

As input images for the RIME formalism, we use GAN-generated radio galaxies created by Rustige et. al. and Kummer et. al.. Below, you can see four example images consisting of FRI and FRII sources.

sources

Any image can be used as input for the formalism, as long as they are stored in the h5 format, generated with h5py.

RIME

Currently, we use the following expression for the simulation process:

$$\mathbf{V}_{\mathrm{pq}}(l, m) = \sum_{l, m} \mathbf{E}_{\mathrm{p}}(l, m) \mathbf{K}_{\mathrm{p}}(l, m) \mathbf{B}(l, m) \mathbf{K}^{H}_{\mathrm{q}}(l, m) \mathbf{E}^{H}_{\mathrm{q}}(l, m)$$

Here, $\mathbf{B}(l, m)$ corresponds to the source distribution, $\mathbf{K}(l, m) = \exp(-2\pi\cdot i\cdot (ul + vm))$ represents the phase delay, and $\mathbf{E}(l, m) = \mathrm{jinc}\left(\frac{2\pi}{\lambda}d\cdot \theta_{lm}\right)$ the telescope properties, with $\mathrm{jinc(x)} = \frac{J_1(x)}{x}$ and $J_1(x)$ as the first Bessel function. An exemplary result can be found below.

visibilities

Visualization of Jones matrices

In this section, you can see visualizations of the matrices $\mathbf{E}(l, m)$ and $\mathbf{K}(l, m)$.

Visualization of the $\mathbf{E}$ matrix

visualize_E

Visualization of the $\mathbf{K}$ matrix

visualize_K

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

pyvisgen-0.4.1.tar.gz (12.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyvisgen-0.4.1-py3-none-any.whl (180.6 kB view details)

Uploaded Python 3

File details

Details for the file pyvisgen-0.4.1.tar.gz.

File metadata

  • Download URL: pyvisgen-0.4.1.tar.gz
  • Upload date:
  • Size: 12.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyvisgen-0.4.1.tar.gz
Algorithm Hash digest
SHA256 38bdedc9d8796035f389728904ee978651275f3d141ea24ba5fe7b7785b90e74
MD5 a90de682f656296a7c334aff42c10735
BLAKE2b-256 05f8edd48c21f0c89faf2fbd14aed85820630f3dd0f692070088c5fd037786ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvisgen-0.4.1.tar.gz:

Publisher: pypi-publish.yml on radionets-project/pyvisgen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyvisgen-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pyvisgen-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 180.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyvisgen-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6a291017780eb28e3a3c60b7ea38f982534a26f1b14ec825c237a9279bc7dd7
MD5 ab562268c01b4ca9e778b5c585a0c80b
BLAKE2b-256 55afbb555e5e6100b919f3668e55b53268d2e0744c48150227686e8e96931ffc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvisgen-0.4.1-py3-none-any.whl:

Publisher: pypi-publish.yml on radionets-project/pyvisgen

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