|-mask||none Input extraction mask|
|-in||none Input frame to be extracted (preprocessed, in e-)|
|-out||none Output datacube|
|-width||5 Extraction window full-width [px]|
|-cal||none Calibration frame|
|-lens||-1 Single lens extraction|
|-offset||NULL Calibration offset (manual)|
|-cal2||NULL 2nd calibration frame|
|-local||Local adjustment to mask positions|
|-linfit||Linear fit (not fully tested)|
|-variance||Use [signal] and [variance] extensions of input frame (default: compute var on-the-fly)|
dbg_ext_extract_specdebug cube, by converting the signal (input frame) and the variance (model) extensions of the cube to 2D-frames, and subtracting them, e.g.,
export_spec -in dbg_ext_xdisp.tig -out lens113_2D -longslit -lcol NO,LBDA export_spec -in dbg_ext_xdisp.tig -out lens113F_2D -longslit -lcol NO,LBDA -noise
CAREFULLY CHECK THE OPTIMAL EXTRACTION (signal and variance). In particular, use the variance extension during the optimal extraction. One could also have a look at Khmil & Surdej 2002 (optimal extraction with maximum entropy).
The spatial coordinates still have to be computed.
For the two-pass multi-order optimal extraction, add an option
-restore to extract pre-restore_frame (i.e. without the final wavelength-rebin and extracted on the full wavelength domain).