orca.wrapper.ttcal

TTCal peeling and calibration wrapper.

Provides Python interface to TTCal, a Julia-based direction-dependent calibration tool for peeling bright sources from visibility data. Supports both standard peeling and polarized (ZEST) peeling modes.

Attributes

TTCAL_EXEC

Functions

peel_with_ttcal(ms, sources)

Use TTCal to peel sources.

zest_with_ttcal(ms[, sources, beam, minuvw, maxiter, ...])

Use TTCal to run 'zest' with sensible defaults.

Module Contents

orca.wrapper.ttcal.TTCAL_EXEC = '/opt/devel/pipeline/envs/julia060/bin/ttcal.jl'[source]
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.ttcal.zest_with_ttcal(ms: str, sources: str = '/yourdirectory/sources.json', beam: str = 'constant', minuvw: int = 10, maxiter: int = 30, tolerance: str = '1e-4')[source]

Use TTCal to run ‘zest’ with sensible defaults.

Parameters:
  • ms – Path to the measurement set.

  • sources – Path to the sources.json file (default: /yourdirectory/sources.json).

  • beam – TTCal beam model (default: ‘constant’).

  • minuvw – Minimum uvw in wavelengths (default: 10).

  • maxiter – Maximum iterations (default: 30).

  • tolerance – Solver tolerance (default: ‘1e-4’).

Returns: The path to the measurement set (TTCal reads/writes in-place).