ngcasa.flagging.manager_add

manager_add(vis_dataset, name, descr, source=None)[source]

Add a new flag variable to the dataset. All flags in the new variable take the values from the source flag variable. If no source is found, the flags are all set to false.

Parameters
  • vis_dataset (xarray.core.dataset.Dataset) – Input dataset

  • name (string) – The new flag variable name

  • descr (string) – Text description of the flag variable (for example, ‘backup_beginning’)

  • source (name) – Name of an existing flag variable. If specified its values will be used to initialize the new flag variable being added

  • Returns

  • -------

  • xds (xarray.core.dataset.Dataset) – Visibility dataset with updated set of flag variables