Python implementation of the VISGEN tool developed at Haystack Observatory. It uses the Radio Interferometer Measurement Equation (RIME) 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.
You can install the necessary packages in a conda environment of your choice by executing
$ pip install -e .
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.
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.
Any image can be used as input for the formalism, as long as they are stored in the h5 format, generated with h5py
.
Currently, we use the following expression for the simulation process:
In this section, you can see visualizations of the matrices