Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
gaussfold
Smoothes a plot by convolving with a Gaussian profile. Main purpose is to convolve a spectrum (flux against wavelength) with a given instrument resolution. Also applicable e.g. to smooth ligthcurves or in time-series analysis.
smoothedFlux = gaussfold(lambda, flux, sigma, LAMMIN=lammin, LAMMAX=lammax)
lambda = In ascending order sorted array (double or float) containing the values of the x-axis (e.g. the wavelength- or frequencygrid). Irregularly spaced grids are acepted. flux = Array (double or float) same size as lambda containing the values of the y-axis (e.g. the flux). fwhm = FWHM in units of the x-axis (e.g. Angstroem) of the Gaussian profile.
NONE
lammin & lammax = Defines the x-axis range. All y-data within this range will be smoothed. CAUTION: improtant in case of large arrays (memory!) DEFAULTS: lammin = MIN(lambda) i.e. lambda[0] lammax = MAX(lambda) i.e. lambda[N_ELEMENTS(lambda)-1]
smoothedFlux = Array (double of float) same size as lambda containing the smoothed flux.
NONE
NONE
NONE
NONE
1. Interpolation of the flux on a fine spaced grid. Oversamplingfaktor: 17 2. Convolution of the flux with a gaussian profile 3. Interpolation of the smoothed flux on the original grid.
fluxS = GAUSSFOLD( lambda, flux, 0.5)
Version 1.0 by Katja Pottschmidt 1999 Version 2.0 by Jochen Deetjen 1999 - Documentation added - Keyword defaults defined - convolution with the gaussian kernel is restricted within a window -> by far less time consuming
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]