next up previous 79
Next: SKYLINER-Removes a sky spectrum normalised the 5577 [OI] line.
Up: Applications in detail
Previous: SETOBJ-Assign value to an HDS primitive


SFIT-Fit a polynomial to a spectrum

Description:
Task to generate a spectrum by fitting a polynomial to an input spectrum. An orthogonal polynomial of specified order is fitted either to the spectrum or to its logarithm, and the result is used to generate a new spectrum.

Parameters:
SPECTRUM
Name of spectrum to be fitted.
ORDER
Order of fitted polynomial.
LOGS
Fit to logarithms of data.
OUTPUT
Name of resulting spectrum.

Source comments:
 S F I T

 Figaro function to generate a spectrum by fitting a polynomial
 to an input spectrum.  An orthogonal polynomial of specified
 order is fitted either to the spectrum or to its logarithm, and
 the result is used to generate a new spectrum.

 Command parameters -

 SPECTRUM    (Character) The name of the spectrum to be fitted.

 ORDER       (Numeric) The order to be used for the fit.

 OUTPUT      (Character) The name of the output file to
             be created.  If this is the same as the input
             spectrum, the data in the input spectrum will
             be modified.

 Command keywords -

 LOGS        Indicates that the logs of the pixel values
             of the input spectrum are to be fitted.

                                          KS / CIT 5th June 1983


next up previous 79
Next: SKYLINER-Removes a sky spectrum normalised the 5577 [OI] line.
Up: Applications in detail
Previous: SETOBJ-Assign value to an HDS primitive

FIGARO A general data reduction system
Starlink User Note 86
Keith Shortridge, Horst Meyerdierks,
Malcolm Currie, Martin Clayton, Jon Lockley,
Anne Charles, Clive Davenhall,
Mark Taylor, Tim Ash, Tim Wilkins, Dave Axon,
John Palmer, Anthony Holloway and
Vito Graffagnino
2004 February 17
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council