Skip to main content

a tool for applying baseline-dependent averaging to a radio interferometer dataset

Project description

Run Tests codecov

baseline_dependent_averaging

This is code for applying baseline-dependent averaging to a radio astronomy interferometric dataset. It applies the principles and formulas presented in Wijnholds et al. (2018) to average high-cadence data to a lower cadence while introducing a maximum amount of decorrelation specified by the user. In brief, short baselines of an interferometer do not decorrelate as rapidly as long baselines, and so data from shorter baselines can be averaged together without losing as much coherent sky information. The code and routines in this repo are designed to work on already-recorded data (which is typically written at a common cadence for all baselines) and averages together consecutive time samples until a specific threshold. A forthcoming memo will describe the operation in more detail.

Installation

The code can be installed by invoking

pip install .

from the top level of the repo. This will install a module called bda which can be imported. The main user-facing function is bda.apply_bda, which is designed to work on a pyuvdata UVData object. It also provides a script, apply_bda.py, which can be called from the command line for applying BDA to an existing dataset on disk.

Dependencies

The following packages are required:

  • astropy
  • setuptools_scm
  • pyuvdata

pyuvdata can be installed from conda (preferred), or from pip. It is available on the conda-forge channel. To install:

conda install -c conda-forge pyuvdata

Tests

The testing requirements can be installed by invoking

pip install .[testing]

from the top level of the repo. This will install the package and all dependencies for running tests. The test suite can be run by running pytest after installation.

Dependencies

In addition to the main package dependencies above, the following packages are required for running tests:

  • pytest >= 6.0

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

bda-0.1.1.tar.gz (17.6 kB view hashes)

Uploaded Source

Built Distribution

bda-0.1.1-py3-none-any.whl (12.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page