Short version:
I have had success in extracting standard stars following the Triplespec Spextool Point Source 'Cookbook' PDF, but have encountered endless problems in extracting very faint sources. Does anyone know of a faint source 'cookbook'?
Long Version:
I've been following the PDF 'Cookbook' for extracting my standard stars and everything works well in Spextool in the 'A' beam mode for bright sources. I have then been trying to extract my very-faint-object spectra in the 'A-B' mode and have encountered a myriad of crashes.
Strategy number 1:
In 'Point Source' tab, select reduction mode 'A-B'
Using fixed aperture locations and 'optimal' extraction, Spextool sometimes (but not always!?) crashes with the following message:
% Attempt to subscript DISP with Z is out of range.
% Execution halted at: XSPEXTOOL_WRITESPEC 5060 /data/Spextool3/Pro/
xspextool.pro% XSPEXTOOL_PSEXTRACTSPEC 2863 /data/Spextool3/Pro/
xspextool.pro% XSPEXTOOL_EVENT 2057 /data/Spextool3/Pro/
xspextool.pro% WIDGET_PROCESS_EVENTS
% $MAIN$
Strategy number 2:
Attempt to combine A-B image in the 'Combine Images' tab. I select 'A-B' beam switching mode. I specify the images and then click 'Combine Images' which crashes with the following message:
% TOTAL: For input argument MASK, Dimension must be 1 or 2.
% Execution halted at: XSPEXTOOL_COMBINEIMGS 2548 /data/Spextool3/Pro/
xspextool.pro% XSPEXTOOL_EVENT 1924 /data/Spextool3/Pro/
xspextool.pro% WIDGET_PROCESS_EVENTS
% $MAIN$
Strategy number 3:
In the 'Combine Images' tab, coadd each ABBA dither quad, then in the 'Point Source' tab, extract spectra in fixed apertures, with 'Optimal' extraction mode selected.
This usually runs to completion, although, it may fail to extract over large swaths of wavelengths for which it spits out warnings in the following format:
Warning: Optimal extraction failed at wavelength 1.2053233.
Warning: Optimal extraction failed at wavelength 1.2054674.
Warning: Optimal extraction failed at wavelength 1.2056116.
Warning: Optimal extraction failed at wavelength 1.2057558.
Warning: Optimal extraction failed at wavelength 1.2058999.
Warning: Optimal extraction failed at wavelength 1.2060441.
etc.
Strategy number 4:
In 'Combine Images' tab, coadd ALL images, then in 'Point Source' tab, extract spectra in defined apertures with 'Optimal' extraction mode. This successfully extracts a spectrum, but may not be best practices. It is not, for example, what was done by Belli et al. (
http://adsabs.harvard.edu/abs/2013arXiv1302.3614B),
my reading of which suggests following strategy number 1 or 2 above.
As a side note, what statistic do people prefer for combining the images and/or spectra (there are a lot of options in the GUI): Robust Weighted Mean, Robust Mean, Mean, Median, etc.?