Navigation: Scripting Reference Manual > Functions & Subroutines > SpectrumGetBlackbodyTemperature

 

SpectrumGetBlackbodyTemperature

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the temperature of the blackbody spectrum.  If the spectrum being queried is not of the correct type then an error is set and the operation is halted.

 

 

Syntax

temp = SpectrumGetBlackbodyTemperature( spectNode )

 

 

Parameters

temp (Double)

Temperature of the blackbody spectrum.

 

spectNode As Double

Node number of the spectrum being queried.

 

 

Example

The following example creates a blackbody spectrum and then retrieves and prints the temperature.

 

Dim spectNode As long

 

spectNode = SpectrumCreateBlackbody( 5900, 0.3, 0.7 )

Print "Spectrum created at temperature: " & SpectrumGetBlackbodyTemperature( spectNode )

 

 

See Also

SpectrumCreateBlackbody

SpectrumGetBlackbodyNormalizationFlag

SpectrumSetBlackbodyNormalizationFlag

SpectrumSetBlackbodyRange

SpectrumSetBlackbodyTemperature

 

 

 

 

 

Copyright © Photon Engineering, LLC