ModifiedBlackbodySpectrum#

class uvex_transients.models.spectra.thermal.ModifiedBlackbodySpectrum(**overrides: Parameter | Quantity | float | int)[source]#

Line-blanketed blackbody spectral shape.

Represents the Stefan-Boltzmann-normalized Planck shape of BlackbodySpectrum, multiplied by a smooth suppression blueward of break_frequency (Nicholl et al. 2017),

\[S(\nu) = \frac{\pi B_\nu(\nu, T)}{\sigma T^4} \left[1 + \left(\frac{\nu}{\nu_\mathrm{break}}\right)^{s}\right]^{-\beta/s},\]

which falls as \(\nu^{-\beta}\) well above the break. The smoothing \(s\) is fixed at SMOOTHING. Unlike BlackbodySpectrum, the suppression removes flux, so \(\int S\,d\nu < 1\) and the normalization depends on temperature, break_frequency and beta. It equals \((15/\pi^4)\,I(x_0, \beta)\) with \(x_0 = h\nu_\mathrm{break}/k_BT\), where \(I\) is evaluated by normalize_modified_blackbody() and looked up from an interpolation table. Parameters outside the table’s range (\(10^{-2} \le x_0 \le 10^3\), \(0 \le \beta \le 10\)) raise a ValueError; inside it the table is accurate to better than 1%.

By default temperature uses a LogNormalPrior, while break_frequency (3000 Angstrom) and beta use constant priors, making them deterministic unless replaced or overridden per instance.

Parameters

The spectral shape parameters are summarized below.

Parameter

Symbol

Description

temperature

\(T\)

Blackbody temperature.

break_frequency

\(\nu_\mathrm{break}\)

Frequency below which the blanketing suppression sets in (generally in the UV).

beta

\(\beta\)

Power-law index of the suppression above the break.

Methods

eval(nu, **parameters)

Evaluate the spectral shape at the given frequency.

eval_cgs(nu, **parameters)

Spectral shape, taking and returning plain cgs numbers.

eval_from_arrays(nu, *parameters)

Positional-argument form of eval().

eval_log(nu, **parameters)

Natural log of the spectral shape, given physical-unit inputs.

eval_log_cgs(nu, **parameters)

Natural log of the spectral shape, taking and returning plain cgs numbers.

eval_normalization(**parameters)

Evaluate \(\int S(\nu)\,d\nu\).

eval_normalization_cgs(**parameters)

Return the shape's frequency integral as plain cgs numbers; see eval_normalization_log_cgs().

eval_normalization_log(**parameters)

Natural log of the shape's frequency integral, given physical-unit inputs.

eval_normalization_log_cgs(**parameters)

Natural log of the shape's frequency integral, taking and returning plain cgs numbers.

get(k[,d])

items()

keys()

pack_params_to_arrays(**parameters)

Convert a dict of parameter values into an ordered sequence.

sample_parameters([size, rng, parameters])

Draw random samples of some or all of this model's parameters.

simulate(nu[, size, rng])

Draw random parameter realizations and evaluate the model at the given frequency.

unpack_params_from_arrays(*parameters)

Convert an ordered sequence of parameter values back into a dict.

values()

Attributes

SMOOTHING

The smoothing parameter \(s\) of the break, fixed for every instance.