Chris Beaumont's IDL Library

Download source code

single page | use frames     summary     class     fields     routine details     file attributes

./

blackbody.pro

topblackbody

Astrophysics

result = blackbody(temp, x [, freq=freq] [, wave=wave] [, cgs=cgs] [, mks=mks])

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

Return value

I_nu or, if /wave is set, I_lambda

Parameters

temp in required

The temperature, in K. Scalar or vector. If it is a scalar, the same temperature is assumed for each value of x.

x in required

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.

Keywords

freq in optional

Set to receive the input as a frequency, and output I_nu (default)

wave in optional

Set to receive the input as a wavelength, and output I_lambda

cgs in optional

Set to receive the input and return the output in cgs units

mks in optional

Set to receive the input and return the output in mks units (default)

File attributes

Modifcation date: Mon Mar 29 16:57:17 2010
Lines: 82