BlackBody

class specviz.analysis.BlackBody(temp=5000, norm=1.0, **kwargs)[source]

Bases: astropy.modeling.core.Fittable1DModel

Produce a blackbody flux spectrum.

Note that the wave and flux arrays used to Quantity

Notes

See Fittable1DModel for further details on modeling and all possible parameters that can be passed in.

Description of the blackbody function itself is described in blackbody

Attributes Summary

norm
param_names
temp

Methods Summary

evaluate(x, temp, norm) Evaluate the blackbody for a given temperature over a wavelength range.

Attributes Documentation

norm
param_names = ('temp', 'norm')
temp

Methods Documentation

evaluate(x, temp, norm)[source]

Evaluate the blackbody for a given temperature over a wavelength range.

Parameters:
  • x (numpy.ndarray) – The wavelengths to evaulate over.
  • temp (float) – The temperature to evualate at.
  • norm (float) – The normalization factor.
Returns:

blackbody_flux – The blackbody flux.

Return type:

numpy.ndarray