get_stokes_from_vis_data#
- pyvisgrid.core.stokes.get_stokes_from_vis_data(vis_data: Visibilities, stokes_comp: str, polarization: str) np.ndarray[source]#
Get the Stokes visibility for a given Stokes component depending on polarization.
- Parameters:
- vis_datapyvisgen.simulation.Visibilities
The Visibilities which are the output of the
pyvisgen.simulation.vis_loopfunction.- stokes_compstr
The name of the Stokes component which should be returned. Valid names are:
'I','Q','U','V','I+V','Q+U','Q-U','I-V'.- polarizationstr
The type of polarization which should be considered. Valid values are:
'circular'and any value. In case this is not set to'circular', the result will be the same for all other values.
- Returns:
- numpy.ndarray:
The Stokes visibility of the given Stokes component with the given polarization.