crop_doubles

interferopy.tools.crop_doubles(cat_name, delta_offset_arcsec=2, delta_freq=0.1, verbose=False, frame='icrs')[source]

Takes a catalogue of clumps and group sources likely from the same target. Tolerance in sky posoition and frequency to be given. If the data is not continuum-subtracted, continuum sources will result in multiple groups of clumps separated by delta_freq. Best used on continuum-subtracted data.

Parameters
  • cat_name

  • delta_offset_arcsec

  • delta_freq

  • verbose – show a progress bar, useful for time-consuming crops

Returns

Writes a copy of the input catalogue, with the added group number for each clump (“_groups.cat”), a reduced catalogue with the highest SN detection for each group (“_cropped.cat”), a region files to plot the positions of the latter.