specreduce icon indicating copy to clipboard operation
specreduce copied to clipboard

Detect lines in a spectrum.

Open crawfordsm opened this issue 7 years ago • 2 comments

Given a spectrum, detect the peaks in the spectrum and identify the lines and possible the statistics of those lines to help with the identification of those lines

crawfordsm avatar Jun 15 '18 15:06 crawfordsm

The peak finding routine in scipy.signal works well for this, I've found, because the arc lines are all of similar width. In DRAGONS I've had to do some wrapping to handle masked pixels and the fact that lines are sometimes saturated and hence flat-topped, which can result in multiple peaks in adjacent pixels that have to be reduced to a single peak. I then have a centroiding routine (a python implementation of the IRAF SPP centroiding which does some iterative spline fitting) to get the peak to sub-pixel accuracy. I guess I should submit a PR with a module containing this code in a non-DRAGONS-specific format.

chris-simpson avatar Apr 07 '20 19:04 chris-simpson

I'd like to have this toolkit available with reasonable astronomy examples. It should be straightforward to add some basic emission line (calibration lamp) peak finding and signal-to-noise thresholding examples.

keflavich avatar Sep 09 '24 15:09 keflavich