plumber

Image plane polarization leakage correction for radio interferometers

https://github.com/ardg-nrao/plumber

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 7 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.2%) to scientific vocabulary

Keywords

polarization radio-astronomy
Last synced: 10 months ago · JSON representation ·

Repository

Image plane polarization leakage correction for radio interferometers

Basic Info
  • Host: GitHub
  • Owner: ARDG-NRAO
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 403 KB
Statistics
  • Stars: 9
  • Watchers: 5
  • Forks: 3
  • Open Issues: 5
  • Releases: 1
Topics
polarization radio-astronomy
Created almost 5 years ago · Last pushed almost 3 years ago
Metadata Files
Readme License Citation

README.md

# Plumber Image plane polarization leakage correction for radio interferometers [![arXiv](https://img.shields.io/badge/arXiv-2107.10009-b31b1b.svg)](https://arxiv.org/abs/2107.10009) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5484098.svg)](https://doi.org/10.5281/zenodo.5484098)

Plumber generates full Stokes primary beam models for radio interferometers using Zernike model coefficients of the antenna aperture illumination pattern. The generated PB models are scaled and matched to the input image coordinate system in order to use standard PB correction tools (such as those found in CASA).

As of 2021 this supports VLA S Band and MeerKAT L band observations, although support for other telescopes and bands is simply a question of providing the coefficients via the input CSV file.


Table of Contents

Installation

Note The spectral-cube dependency points to the master branch, pending the stable release of certain bleeding-edge features that are required by plumber.

Installation via pip

Clone the repo, then cd into the cloned directory and run

pip install .

It is advisable to run the above command within a Python virtual environment, created using your favourite tool (e.g., conda or pyenv).

Usage:

plumber <path_to_template_image> <path_to_coefficient_csv> [options]

The full command line arguments :

``` Usage: plumber [OPTIONS] IMAGENAME CSV

Given the input image and the coefficient CSV file, generate the full Stokes primary beam at the image centre frequency. If the input is a cube, a corresponding output cube of PBs will be generated, for each of the Stokes-I, -Q, -U and -V beams.

To pass in a beginning and end parallactic angle, pass in --parang twice, like

plumber --parang 20 --parang 110

The CSV file must be of the format

#stokes,freq,ind,real,imag,eta

The eta column in the CSV is optional.

Options: -a, --padding INTEGER Padding factor for aperture, affects smoothness of output beam [default: 8]

-d, --dish_dia FLOAT Diameter of the antenna dish. If not one of VLA, ALMA, MeerKAT or GMRT, must be specified.

-l, --islinear Specifies if the telescope has linear feeds. If not one of VLA, ALMA, MeerKAT or GMRT, must be specified

-I, --stokesI Only generate the Stokes I beam, not the full Stokes beams

-P, --parallel Use parallel processing (no MPI) to speed things up -p, --parang FLOAT Beginning (and optionally end) parallactic angle for the PB. Pass --parang twice to specify beg and end.

-h, --help Show this message and exit. ```

Determining parallactic angle

In order to rotate the beams to the right parallactic angle, the parang_finder helper script is bundled with plumber.

``` Usage: parang_finder [OPTIONS] MS

Helper script to determine the range of parallactic angles in an input MS.

Part of the plumber package to generate full Stokes beam models.

Options: --field TEXT Name of field to consider, must match exactly the name in the MS. If this is not specified, will use the first field with the TARGET intent. --use-astropy Use astropy convention rather than CASA convention to calculate the parallactic angle -c, --calcweights Print a list of parallactic angle and associated weights -w, --binwidth INTEGER Bin width in degrees -h, --help Show this message and exit. ```

Location of coefficients

The coefficient files are within the ./plumber/data/ directory of this repository. When the repository is cloned locally, the path of the CSV files can be passed in via command line.

Citation

If you have used plumber in your research, please cite the following paper :

Sekhar, S., Jagannathan, P., Kirk, B., Bhatnagar, S., & Taylor, R. (2022). Direction-dependent Corrections in Polarimetric Radio Imaging. III. A-to-Z Solver—Modeling the Full Jones Antenna Aperture Illumination Pattern. The Astronomical Journal, 163(2), 87.

An example BibTeX entry is below : @article{Sekhar_2022, doi = {10.3847/1538-3881/ac41c4}, url = {https://dx.doi.org/10.3847/1538-3881/ac41c4}, year = {2022}, month = {jan}, publisher = {The American Astronomical Society}, volume = {163}, number = {2}, pages = {87}, author = {Srikrishna Sekhar and Preshanth Jagannathan and Brian Kirk and Sanjay Bhatnagar and Russ Taylor}, title = {Direction-dependent Corrections in Polarimetric Radio Imaging. III. A-to-Z Solver—Modeling the Full Jones Antenna Aperture Illumination Pattern}, journal = {The Astronomical Journal}, }

Owner

  • Name: Algorithms Research & Development Group - National Radio Astronomy Observatory
  • Login: ARDG-NRAO
  • Kind: organization
  • Location: United States of America

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Sekhar"
  given-names: "Srikrishna"
  orcid: "https://orcid.org/0000-0002-8418-9001"
- family-names: "Jagannathan"
  given-names: "Preshanth"
  orcid: "https://orcid.org/0000-0002-5825-9635"

title: "Plumber"
version: 0.1
doi: 10.5281/zenodo.5484098
date-released: 2021-09-07
url: "https://github.com/Kitchi/plumber"

GitHub Events

Total
  • Issues event: 2
Last Year
  • Issues event: 2

Dependencies

.github/workflows/codeql-analysis.yml actions
  • actions/checkout v2 composite
  • github/codeql-action/analyze v1 composite
  • github/codeql-action/autobuild v1 composite
  • github/codeql-action/init v1 composite
pyproject.toml pypi
  • astroplan *
  • astropy *
  • casadata *
  • casatasks >=6.2
  • casatools >=6.2
  • click *
  • matplotlib *
  • numpy >=1.8.0
  • pandas *
  • spectral_cube @ git+https://github.com/radio-astro-tools/spectral-cube.git