BLACKBODY Purpose
This function calculates the Planck function I_nu or
I_lambda.
I_nu = 2h nu^3 c^-2 ( exp(h nu / kT) -1)^-1
I_lambda = 2h c^2 lambda^-5 (exp ( hc / lambda kt) -1)^-1
Category
Astrophysics
Calling Sequence
result = BLACKBODY(temp, x, [/freq, /wave, /cgs, /mks])
Inputs
temp: The temperature, in K. Scalar or vector. If it is a scalar,
the same temperature is assumed for each value of x.
x: By default, the wagelength in mks units. If /cgs is set, then
this number is in cgs units. If /freq is set, this number is the
frequency.
Keyword Parameters
wave: Set to receive the input as a wavelength, and output I_lambda
freq: Set to receive the input as a frequency, and output I_nu
(default)
cgs: Set to receive the input and return the output in cgs units
mks: Set to receive the input and return the output in mks units
(default)
Outputs
I_nu or, if /wave is set, I_lambda
Modification History
May 2009: Written by Chris Beaumont