get_xlimits_from_lines

msaexp.drizzle.get_xlimits_from_lines(hdul, sn_thresh=2, max_dy=4, n_erode=2, n_dilate=4, pad=10, verbose=True)[source]

Find emission lines in 2D spectrum

Parameters
hdulHDUList

The HDUList object containing the 2D spectrum.

sn_threshfloat, optional

The signal-to-noise threshold for identifying emission lines. Default is 2.

max_dyfloat, optional

The maximum deviation in the y-direction from the central pixel. Default is 4.

n_erodeint, optional

The number of iterations for binary erosion. Default is 2.

n_dilateint, optional

The number of iterations for binary dilation. Default is 4.

padint, optional

The padding value for the x-limits. Default is 10.

verbosebool, optional

Whether to print verbose output. Default is True.

Returns
xlimtuple

A tuple containing the x-limits of the emission lines.