orca.wrapper.dada2ms

DADA to measurement set conversion wrapper.

Provides Python interface to Stephen Bourke’s dada2ms tool for converting OVRO-LWA correlator DADA files to CASA measurement sets.

Attributes

dada2ms_exec

dada2ms_config

Functions

dada2ms(→ str)

Wrapper around Stephen Bourke's dada2ms.

Module Contents

orca.wrapper.dada2ms.dada2ms_exec = '/opt/astro/dada2ms/bin/dada2ms-tst3'[source]
orca.wrapper.dada2ms.dada2ms_config = '/home/yuping/dada2ms.cfg'[source]
orca.wrapper.dada2ms.dada2ms(dada_file: str, out_ms: str, gaintable: str = None, addspw: bool = False) str[source]

Wrapper around Stephen Bourke’s dada2ms. Optionally apply a gaintable (only gaintable of type bandpass has been tested). It will write a ms with the data in the DATA column. If the directory of the out_ms does not exist, it will create the directory.

Parameters:
  • dada_file – Path to the dada file.

  • out_ms – Path to the output measurement set.

  • gaintable – Path to the gaintable. Default is None which means don’t apply the calibration.

  • addspw – Use the –apend –addspw options.

Returns: Path to the output ms. The same as out_ms