Navigation: Scripting Reference Manual > Functions & Subroutines > SpectrumGetValue

 

SpectrumGetValue

 

Contact Us: fredsupport@photonengr.com

 

Description

Gets the value of the spectrum at the given wavelength.  If the wavelength provided lies outside of the spectrum's wavelength range, then the returned value is zero.  If the spectrum is a sampled spectrum and the wavelength provided is not an exact sample point, then the returned value is a linear interpolation.

 

 

Syntax

value = SpectrumGetValue( spectNode, wavelength )

 

 

Parameters

value (Double)

Value of the spectrum at the given wavelength.

 

spectNode As Long

Node number of the spectrum being queried.

 

wavelength As Double

Wavelength for which the value is returned.

 

 

Example

The following example gets the value of a spectrum at 0.5 microns and prints the result to the output window.

 

Dim value As Double

 

value = SpectrumGetValue( spectNode, 0.5 )

Print "Value is: " & value

 

See Also

SpectrumCombine

SpectrumComputeArea

SpectrumComputeChromaticity

SpectrumComputeLuminousEfficacy

SpectrumCopy

SpectrumDelete

SpectrumDeleteAllNodes

SpectrumFindName

SpectrumGetDescription

SpectrumGetMaxNodeNum

SpectrumGetName

SpectrumGetNodeCount

SpectrumGetRange

SpectrumIsValidNode

SpectrumSetDescription

SpectrumSetName

 

 

 

 

 

Copyright © Photon Engineering, LLC