InverseGammaBlackbodySED#

class uvex_transients.models.shock_cooling.inverse_gamma.InverseGammaBlackbodySED(**overrides: Parameter | Quantity | float | int)[source]#

The InverseGammaBrokenPowerLawLightcurve with a blackbody.

The SED pairs the bolometric light curve with a time-dependent blackbody,

\[L_\nu(\nu, t) = L_\mathrm{bol}(t)\, S_\mathrm{BB}\!\left[\nu, T(t)\right],\]

where \(S_\mathrm{BB}\) is the normalized blackbody shape of BlackbodySpectrum. The temperature follows from the luminosity and a photospheric radius that grows linearly in time from a breakout radius,

\[T(t) = \left[\frac{L_\mathrm{bol}(t)}{4\pi\sigma_\mathrm{SB} R_\mathrm{ph}^2(t)}\right]^{1/4}, \qquad R_\mathrm{ph}(t) = R_\mathrm{bo}\left(1 + \frac{x}{x_s}\right),\]

with \(x = t/t_0\). The radius doubles at \(x = x_s\). The breakout radius is

\[R_\mathrm{bo} = \min\left[c\,t_0,\; 8.8\times10^{13}\,\mathrm{cm}\left(\frac{t_0}{1\,\mathrm{d}}\right)^{2/3} \left(\frac{L_0}{10^{44}\,\mathrm{erg\,s^{-1}}}\right)^{1/3}\right],\]

so it is set by \(t_0\) and \(L_0\) and is not a separate parameter.

Note

\(R_\mathrm{bo}\) is an effective radius, the size implied by the duration of the pulse. The first term is the distance light travels in \(t_0\), which is the size of a breakout that is light-crossing limited (the observed pulse lasts \(\max(R/c, t_\mathrm{diff})\), with \(t_\mathrm{diff}\) the photon diffusion time through the breakout layer). It overestimates the radius when diffusion sets the duration, and without a cap the photosphere of a long event would be implausibly large and cold. The second term is that cap. It grows as \(t_0^{2/3} L_0^{1/3}\), more slowly than \(c\,t_0\), and is the smaller of the two for all but the shortest time scales: at \(L_0 = 10^{44}\) erg/s it takes over at \(t_0 \approx 3\) s, and at \(10^{46}\) erg/s at about \(3\times10^2\) s. The two terms use \(t_0\), not the time of the peak of the light curve, which differs from it by under 1% for the default shape.

The temperature goes to zero with the luminosity as \(t \to 0\), and the radius does not vanish, so the emission is a blackbody of finite radius at every time. The bolometric luminosity is exact, with no integration over frequency, because the blackbody shape is normalized independently of the temperature.

By default only \(L_0\) and \(t_0\) vary. The four shape parameters of the light curve are fixed (a ConstantPrior) at \(p = 4/3\), \(q = 0.3\), \(x_s = 10\) and \(k = 2\), and can be overridden like any other parameter.

Parameters

The model parameters are those of the light curve, and are summarized below.

Parameter

Symbol

Description

amplitude

\(L_0\)

Peak bolometric luminosity.

t_scale

\(t_0\)

Time scale; the dimensionless time is \(x = t / t_0\).

p

\(p\)

Index of the rise-and-decline factor, and of the decline before the break. Fixed by default.

q

\(q\)

Index of the late-time decline after the break. Fixed by default.

x_break

\(x_s\)

Location of the break, in units of \(t_0\). Also sets the growth of the photosphere. Fixed by default.

smoothness

\(k\)

Sharpness of the break. Fixed by default.

Methods

as_astropy_model([x_type, y_type, y_kind, ...])

Build an Model of this SpectralModel for a given parameter set.

as_source_spectrum(t, *[, redshift, ...])

Build a SourceSpectrum giving the observed flux at one fixed time \(t\).

decline_time(bandpass, t[, fraction])

Measure the time the rest-frame band luminosity takes to fall from its peak to a fraction of it.

eval(nu, t, **parameters)

Evaluate the spectral luminosity at the given frequency and time.

eval_band_luminosity(bandpass, t, **parameters)

Evaluate the rest-frame luminosity in a band, for draws of the parameters, on a grid of times.

eval_bolometric(t, **parameters)

Evaluate the bolometric luminosity at the given time.

eval_bolometric_cgs(t, **parameters)

Bolometric luminosity, taking and returning plain cgs numbers.

eval_bolometric_log(t, **parameters)

Natural log of the bolometric luminosity, given physical-unit inputs.

eval_bolometric_log_cgs(t, **parameters)

Natural log of the bolometric luminosity, taking and returning plain cgs numbers.

eval_cgs(nu, t, **parameters)

Spectral luminosity, taking and returning plain cgs numbers.

eval_from_arrays(nu, t, *parameters)

Positional-argument form of eval().

eval_log(nu, t, **parameters)

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

eval_log_cgs(nu, t, **parameters)

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

eval_spectrum(nu, t, **parameters)

Evaluate the normalized spectral shape at the given frequency and time.

eval_spectrum_cgs(nu, t, **parameters)

Return the normalized spectral shape as plain cgs numbers; see eval_log_cgs().

eval_spectrum_log(nu, t, **parameters)

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

eval_spectrum_log_cgs(nu, t, **parameters)

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

flux(nu, t, *[, redshift, ...])

Evaluate the observed flux density at the given frequency and time.

flux_band(nu, throughput, t, *[, redshift, ...])

Evaluate the photon-weighted mean observed flux density over a band.

flux_band_cgs(nu, throughput, t, redshift, ...)

Band-averaged observed flux density as plain cgs numbers; see flux_band_log_cgs().

flux_band_log(nu, throughput, t, *[, ...])

Natural log of the band-averaged observed flux density, given physical-unit inputs.

flux_band_log_cgs(nu, throughput, t, ...[, ...])

Natural log of the photon-weighted mean flux density over a band, plain cgs numbers.

flux_bolometric(t, *[, redshift, ...])

Evaluate the observed bolometric flux at the given time.

flux_bolometric_cgs(t, redshift, ...)

Observed bolometric flux, taking and returning plain cgs numbers.

flux_bolometric_log(t, *[, redshift, ...])

Natural log of the observed bolometric flux, given physical-unit inputs.

flux_bolometric_log_cgs(t, redshift, ...)

Natural log of the observed bolometric flux, taking and returning plain cgs numbers.

flux_cgs(nu, t, redshift, luminosity_distance, *)

Observed flux density, taking and returning plain cgs numbers.

flux_log(nu, t, *[, redshift, ...])

Natural log of the observed flux density, given physical-unit inputs.

flux_log_cgs(nu, t, redshift, ...[, ...])

Natural log of the observed flux density, taking and returning plain cgs numbers.

get(k[,d])

get_effective_peak_magnitudes(z_grid, ...[, ...])

Evaluate a sampled population's effective peak magnitude at every redshift of a grid.

get_observability_curve(mag_limits, *[, ...])

Bound the redshift beyond which a population is undetectable, for each magnitude limit.

items()

keys()

mag(nu, t, *[, redshift, ...])

Evaluate the apparent AB magnitude at the given frequency and time.

mag_band(nu, throughput, t, *[, redshift, ...])

Evaluate the apparent AB magnitude of the band-averaged flux density.

mag_band_cgs(nu, throughput, t, redshift, ...)

Apparent AB magnitude of the band-averaged flux density.

mag_bandpass(bandpass, t, *[, redshift, ...])

Evaluate the apparent AB magnitude of the flux averaged over bandpass.

mag_cgs(nu, t, redshift, luminosity_distance, *)

Apparent AB magnitude: \(m_\mathrm{AB} = -2.5 \log_{10}(F_\nu / F_{\mathrm{AB},0})\).

measure_photometry(t, exptime, detector, ...)

Measure this model with a real detector at given times: one noisy measurement per epoch and band.

pack_params_to_arrays(**parameters)

Convert a dict of parameter values into an ordered sequence.

peak_luminosity(bandpass, t, **parameters)

Measure the peak of the rest-frame band luminosity, for draws of the parameters.

photospheric_radius(t, **parameters)

Photospheric radius \(R_\mathrm{ph}(t)\).

sample_parameters([size, rng, parameters])

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

sample_peak_luminosities(bandpass, n, *[, ...])

Draw the parameters of n events from their priors and measure the peak band luminosity of each.

simulate(nu, t[, size, rng])

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

simulate_photometry(t, exptime, detector, ...)

Simulate noisy synthetic photometry of this model at given times, against a real detector.

temperature(t, **parameters)

Photospheric temperature \(T(t)\).

unpack_params_from_arrays(*parameters)

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

values()