BlackBody1D

class synphot.models.BlackBody1D(*args, **kwargs)[source]

Bases: astropy.modeling.Fittable1DModel

Create a blackbody spectrum model with given temperature.

Parameters
temperaturefloat

Blackbody temperature in Kelvin.

Attributes Summary

lambda_max

Peak wavelength in Angstrom when the curve is expressed as power density.

param_names

Names of the parameters that describe models of this type.

temperature

Methods Summary

evaluate(x, temperature)

Evaluate the model.

integrate(*args)

sampleset([factor_bbox, num])

Return x array that samples the feature.

Attributes Documentation

lambda_max

Peak wavelength in Angstrom when the curve is expressed as power density.

param_names = ('temperature',)

Names of the parameters that describe models of this type.

The parameters in this tuple are in the same order they should be passed in when initializing a model of a specific type. Some types of models, such as polynomial models, have a different number of parameters depending on some other property of the model, such as the degree.

When defining a custom model class the value of this attribute is automatically set by the Parameter attributes defined in the class body.

temperature = Parameter('temperature', value=5000.0)

Methods Documentation

static evaluate(x, temperature)[source]

Evaluate the model.

Parameters
xnumber or ndarray

Wavelengths in Angstrom.

temperaturenumber

Temperature in Kelvin.

Returns
ynumber or ndarray

Blackbody radiation in PHOTLAM per steradian.

integrate(*args)[source]
sampleset(factor_bbox=10.0, num=1000)[source]

Return x array that samples the feature.

Parameters
factor_bboxfloat

Factor for bounding_box calculations.

numint

Number of points to generate.