mask_sources

sitelle.source.mask_sources(sources, annulus)

Mask sources not contained in a given 2D mask.

Parameters:
  • sources (DataFrame) – DataFrame containing detected sources. Should have columns ycentroid and xcentroid. WARNING : astropy convention : y and x are inversed.
  • annulus (2D ndarray) – 2D array containing 1 where we want to keep sources, 0 where we don’t
Returns:

sources – Subset of the original sources containing only the ones whose position is in the annulus.

Return type:

DataFrame