create_point_vis

ska_sdp_func_python.visibility.operations.create_point_vis(vis: ndarray, flags: ndarray, weight: ndarray, modelvis: ndarray, model_flags: ndarray) Tuple[ndarray, ndarray]

Create equivalent point source visibilities from observed and model data.

This function prepares visibility data for calibration by removing source structure effects. If a model is provided, the observed visibilities are divided by the model visibilities (using _divide_visibility). Flags are applied to both observed and model data before this operation.

Parameters

visnumpy.ndarray

Observed complex visibilities. Shape: (ntime, nbl, nchan, npol).

flagsnumpy.ndarray

Boolean flags for observed data (True indicates flagged/bad data). Shape matches vis.

weightnumpy.ndarray

Weights associated with the observed visibilities. Shape matches vis.

modelvisnumpy.ndarray

Model complex visibilities representing the source structure.

model_flagsnumpy.ndarray

Boolean flags for the model data.

Returns

tuple of numpy.ndarray

A tuple containing:

  • point_vis: The resulting point source equivalent visibilities.

  • point_weight: The associated wghts (adjusted if division occurred)