Skip to content

Commit d88b0e5

Browse files
add a XD recipe to combine wavelength solutions from 2 different sources, eg sky emission for some orders and lamp for the others.
1 parent 66b03df commit d88b0e5

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

geminidr/gnirs/recipes/sq/recipes_ARC_XD_SPECT.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,20 @@ def makeProcessedArc(p):
2626
p.determineDistortion(spatial_order=1, step=4)
2727
p.storeProcessedArc()
2828

29+
def combineWavelengthSolutions(p):
30+
"""
31+
Combine wavelength solutions from two different sources, such as orders
32+
from sky lines and the others from the lamp.
33+
34+
Inputs are:
35+
* First processed arc
36+
* Second processed arc
37+
* List of extensions to take from the second processed arc
38+
"""
39+
p.rejectInputs(at_start=1, outstream="second_arc")
40+
p.rejectInputs(at_end=1)
41+
p.combineSlices(from_stream="second_arc")
42+
p.storeProcessedArc(suffix='_combinedArc')
43+
p.writeOutputs()
2944

3045
_default = makeProcessedArc

0 commit comments

Comments
 (0)