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

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',)
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.