FINDPEAK: Find the Location of a Spectrum along Rows or Columns

Form: FINDPEAK buf [MODEL=b] [LOC=r1,r2] [SPW=w] [SP=s1,s2] [DLOC=dp] [INT] [COLS]
MODEL=b
Specifies a spectrum buffer where a model for the curvature of the spectrum will be found.
LOC=r1,r2
specifies the approximate row upon which the peak lies. If only one row is specified that row will be used as the model for the peak search. If two rows are specified a linear model will be used.
SPW=w
To specify a width for the box within which the peak will be searched. See also SP=.
SP=s1,s2
specify a window (possibly asymmetric) around the model, to find the peak. Two numbers row numbers must be given, and are assumed to be relative to the model.
DLOC=dp
specifies a shift of d rows between model and peak
INT
Find the peak location only within a pixel. Otherwise, the fractional location of the peak will be estimated fitting a parabola around the peak.
MEDIAN
Finds the median row, rather than the peak, inside the given limits.
AREA=fa
Rather than the peak or the median, finds the row at which the cumulative counts reach a fraction fa of the total (fa=.5 is equivalent to MEDIAN). This keyword is analogous to the one in command ABX.
COLS
Finds the location of the peak or median at each row rather than at each column

FINDPEAK maps the vertical (row-axis) location of the peak (maximum) down each column of an image, or the horizontal (column-axis) location of the peak running down each row using the COLS keyword. The mapping is done and stored in a "spectrum" in an analogous fashion to the centroiding part of command SPECTROID. The MEDIAN and AREA=fa allows for mapping not of the location of the peak, but of the row at which a certain fractional area is reached (the median in particular),