planck.distribution: Plank distribution as a function of wavenumber, wavelength or...

View source: R/planck.distribution.functions.R

planck.distributionR Documentation

Plank distribution as a function of wavenumber, wavelength or frequency.

Description

This is a function to plot the Plank distribution as a function of wavenumber, wavelength or frequency.

Usage

planck.distribution(typ, x.min, x.max, Temp, plotQ = FALSE)

Arguments

typ

Scale units for witch to compute the Planck distribution. Choices are: "wavenumber", "wavelength", "frequency"

x.min

The smallest domain value to use. Use something at least little larger than 0

x.max

The largest domain to use

Temp

The temperature in Kelvin

plotQ

Whether or not to plot the distribution

Details

This wrapper is a function to plot the Plank distribution as a function of wavenumber, wavelength or frequency.

Value

A two column matrix. The first column is the x-axis over which the Planck distribution was computed (m^-1, m or s^-1). The second column is the Planck distribution values

Examples

#USE the function planck.distribution below:
planck.distribution(typ = "wavenumber", 10000, 3000000,  1500, plotQ = T)
planck.distribution(typ = "wavelength", 10e-9, 10000e-9, 1500, plotQ = T)
planck.distribution(typ = "frequency",  10e10, 6e14,     1500, plotQ = T)


npetraco/che302r documentation built on April 17, 2025, 10:34 p.m.