apall

        input = <frames you want to extract from>   List of input images
nfind = 1 Number of apertures to be found automatically
(output = "") List of output spectra
(apertures = "") Apertures
(format = "onedspec") Extracted spectra format
(references = "THINK") List of aperture reference images
(profiles = "") List of aperture profile images\n
(interactive = yes) Run task interactively?
(find = yes) Find apertures?
(recenter = yes) Recenter apertures?
(resize = no) Resize apertures?
(edit = yes) Edit apertures?
(trace = yes) Trace apertures?
(fittrace = yes) Fit the traced points interactively?
(extract = yes) Extract spectra?
(extras = no) Extract sky, sigma, etc.?
(review = yes) Review extractions?\n
(line = INDEF) Dispersion line
(nsum = 30) Number of dispersion lines to sum or median\n\n
(lower = -5.) Lower aperture limit relative to center
(upper = 5.) Upper aperture limit relative to center
(apidtable = "") Aperture ID table (optional)

DEFAULT BACKGROUND PARAMETERS

(b_function = "chebyshev") Background function
(b_order = 3) Background function order
(b_sample = "-10:-6,6:10") Background sample regions
(b_naverage = -3) Background average or median
(b_niterate = 0) Background rejection iterations
(b_low_reject = 3.) Background lower rejection sigma
(b_high_rejec = 3.) Background upper rejection sigma
(b_grow = 0.) Background rejection growing radius

APERTURE PARAMETERS

(width = 5.) Profile centering width
(radius = 10.) Profile centering radius
(threshold = 0.) Detection threshold for profile centering\n\n#
(minsep = 5.) Minimum separation between spectra
(maxsep = 1000.) Maximum separation between spectra
(order = "increasing") Order of apertures

RECENTERING PARAMETERS

(aprecenter = "") Apertures for recentering calculation
(npeaks = 1) Select brightest peaks
(shift = yes) Use average shift instead of recentering?

RESIZING PARAMETERS

(llimit = INDEF) Lower aperture limit relative to center
(ulimit = INDEF) Upper aperture limit relative to center
(ylevel = 0.1) Fraction of peak or intensity for automatic wid
(peak = yes) Is ylevel a fraction of the peak?
(bkg = yes) Subtract background in automatic width?
(r_grow = 0.) Grow limits by this factor
(avglimits = no) Average limits over all apertures?

TRACING PARAMETERS

(t_nsum = 20) Number of dispersion lines to sum
(t_step = 20) Tracing step
(t_nlost = 3) Number of consecutive times profile is lost bef
(t_function = "spline3") Trace fitting function
(t_order = 2) Trace fitting function order
(t_sample = "*") Trace sample regions
(t_naverage = 1) Trace average or median
(t_niterate = 1) Trace rejection iterations
(t_low_reject = 3.) Trace lower rejection sigma
(t_high_rejec = 3.) Trace upper rejection sigma
(t_grow = 0) Trace rejection growing radius

EXTRACTION PARAMETERS

(background = fit) Background to subtract
(skybox = 1) Box car smoothing length for sky
(weights = none) extraction weights (none|variance)
(pfit = "fit1d") Profile fitting type (fit1d|fit2d)
(clean = no) Detect and replace bad pixels?
(saturation = INDEF) Saturation level
(readnoise = check header) Read out noise sigma (photons)
(gain = check header) Photon gain (photons/data number)
(lsigma = 4.) Lower rejection threshold
(usigma = 4.) Upper rejection threshold
(nsubaps = 1) Number of subapertures per aperture
(mode = "ql")

keystroke commands in interactive mode:
w   set the box for viewing the plot (after selecting w, press e once to define new lower left corner and again to define new upper right corner)
l    place lower edge of aperture
u    place upper edge of aperture
b   check background sections
t   erase current background sections
s   define edge of background section (press once on desired lower edge and again on desired upper edge; select one section on each side of the extraction aperture)
f   fit sky
q   quit sky
q   quit aperture
d   when fitting the trace, use d to delete bad data points
f   refit trace
s   choose edge of area to trace (press s once on lower edge and once on upper edge; only use this if one end of the trace looks to be way off)