| waveoffset | stsdas.hst_calib.fos | waveoffset |
waveoffset -- Compute the spectral offset.
waveoffset input1 wave1 input2
This routine computes the offset of a spectrum (input2) from a reference spectrum (input1) and its wavelength (wave1), as a function of wavelength and diode position. The input spectra are divided into a number of equally sized bins (specified by the nbins parameter). The second spectrum for each bin is cross-correlated with the corresponding bin in the first spectrum. The position of the maximum in the correlation matrix is found. An offset is found by locating the maximum of the quadratic through that position and its two neighbors. The offsets for all bins are placed in an output table as both diode and wavelength offsets. PARAMETERS
'WAVELENGTH' - Wavelength at the center of each bin (double). 'DIODE' - Diode, or sample position, at bin centers (double). 'DELTAW' - Offsets in wavelength units (double). 'DELTAD' - Offsets in diode units (double). 'COUNTS' - Total counts in bin for 'input2' (double).
1. Compute the offset between upper and lower apertures of the spectra in file h40blue. The upper aperture is in the first group of the file and the lower aperture in the second group. The wavelengths for the first group are stored in wh40blue (group 1). Results are written to a table called offsets.tab.
fo> waveoffset h40blue[1] wh40blue[1] h40blue[2] tab=offsets
Howard Bushouse, STSDAS
For assistance using this or any other tasks, please contact help@stsci.edu or call the help desk at 410-338-1082.