Description Creates a new Gaussian spectrum from a center wavelength, HWHM and wavelength range. The spectrum name can be set using the SpectrumSetName subroutine. Before the spectrum is added to the FRED document an Update command should be issued.
Syntax spectNode = SpectrumCreateGaussian( centWl, hwhm, minWl, maxWl )
Parameters spectNode (Long) Node number of the spectrum being created.
centWl As Double Center wavelength of the Gaussian spectrum in microns.
hwhm As Double Half width at half maximum of the Gaussian spectrum in microns.
minWl As Double Minimum wavelength in the spectrum in microns.
maxWl As Double Maximum wavelength in the spectrum in microns.
Example The following example creates a new Gaussian spectrum centered at 0.5 microns with HWHM of 0.2 microns over the range 0.1 to 0.9 microns.
Dim spectNode As Long
spectNode = SpectrumCreateGaussian( 0.5, 0.2, 0.1, 0.9 ) SpectrumSetName spectNode, "My Spectrum" Update
See Also SpectrumCreatePredefinedSampled
|