Skip to content

Commit

Permalink
Added makeWavelengthSolution recipe to F2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olesja Smirnova committed Jan 25, 2023
1 parent cfad2f3 commit 9e0d57c
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion geminidr/f2/recipes/sq/recipes_LS_SPECT.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,29 @@ def reduceScience(p):
p.storeProcessedScience(suffix="_2D")
p.extractSpectra()
p.storeProcessedScience(suffix="_1D")



def makeWavelengthSolution(p):
"""
Process F2 longslist science in order to create wavelength and distortion
solutions using sky emission lines.
Inputs are:
* raw science with caldb requests:
* procdark with matching exptime
* procflat
"""
p.prepare()
p.addDQ()
p.addVAR(read_noise=True)
p.ADUToElectrons()
p.addVAR(poisson_noise=True)
p.darkCorrect()
#p.flatCorrect()
p.makeIRAFCompatible()
p.determineWavelengthSolution()
p.determineDistortion(debug=True)
p.storeProcessedArc(force=True)
p.writeOutputs()

_default = reduceScience

0 comments on commit 9e0d57c

Please sign in to comment.