export_visibility_to_ms

ska_sdp_datamodels.visibility.export_visibility_to_ms(msname, vis_list, source_name=None)[source]

Minimal Visibility to MS converter

The MS format is much more general than the RASCIL Visibility so we cut many corners. This requires casacore to be installed. If not an exception ModuleNotFoundError is raised.

Write a list of Visibility’s to a MS file, split by field and spectral window

Parameters:
  • msname – File name of MS

  • vis_list – list of Visibility

  • source_name – Source name to use

  • ack – Ask casacore to acknowledge each table operation

Returns: