orca.wrapper package

Submodules

orca.wrapper.change_phase_centre module

orca.wrapper.change_phase_centre.change_phase_center(ms: str, center_dir: str) → str[source]
orca.wrapper.change_phase_centre.get_phase_center(ms: str) → str[source]

orca.wrapper.dada2ms module

dada2ms wrapper

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

orca.wrapper.ttcal module

Wrappers for TTCal.

orca.wrapper.ttcal.peel_with_ttcal(ms: str, sources: str)[source]

Use TTCal to peel sources.

Parameters
  • ms – Path to the measurement set.

  • sources – Path to the sources.json file.

Returns: The path to the measurement set because TTCal reads from and writes to it.

orca.wrapper.wsclean module

wsclean wrapper

orca.wrapper.wsclean.wsclean(ms_list: List[str], out_dir: str, filename_prefix: str, extra_arg_list: List[str]) → None[source]

Run wsclean with arguments and put output fits files in out_dir. wsclean will writes the following files (depending on the options):

Dirty image: {out_dir}/{filename_prefix}-dirty.fits

Cleaned image (dirty if -niter 0): {out_dir}/{filename_prefix}-image.fits

PSF (if -make-psf or cleaning enabled): {out_dir}/{filename_prefix}-psf.fits

Residual image (if cleaning enabled): {out_dir}/{filename_prefix}-residual.fits

Parameters
  • ms_list – List of input measurement sets.

  • out_dir – Output directory.

  • filename_prefix – Prefix for output fits files.

  • extra_arg_list – List of arguments to supply to wsclean in addition to the ones about file names.

Returns: None. But you can reconstruct the fits file names with the wsclean conventions.

Module contents