cwitools.extraction.detect_lines

cwitools.extraction.detect_lines(obj_fits, lines=None, redshift=0, vwidth=500)

Associate detected 3D objects with known emission lines.

Parameters:
  • obj_fits (HDU or HDUList) – The input 3D object mask.
  • lines (float list) – Optional list of rest-frame emission lines to compare against, in units of Angstrom. Over-rides default line list.
  • redshift (float) – The redshift of the emission.
  • vwidth (float) – The velocity window of each line, in km/s, within which objects are considered to be associated. (+/- vwidth)
Returns:

A dictionary of the format {<line>:<obj_ids>} where

<line> is a given input line, and <obj_ids> is a list of integer labels for the objects.

Return type:

dict