HostDustMixin#

class uvex_transients.models.host_dust.HostDustMixin[source]#

Mixin that puts host-galaxy dust attenuation into an SED model.

Put it before the SED in the bases (class Foo(HostDustMixin, SomeSED)) and add HOST_DUST_PARAMETERS to the subclass’s _DEFAULT_PARAMETERS. The wrapped SED never sees A_V and R_V: they are removed before its own methods are called.

What the dust is, and what that means for \(L_\mathrm{bol}\)

The attenuation is applied to the rest-frame \(L_\nu\), so it enters everything derived from the SED: photometry, peak band luminosities and the detection horizon. It is deliberately not a separate correction. For a supernova we do not know the dust conditions that shaped the light we receive, so the model describes the observed and inferred luminosity of the event, dust included, rather than the intrinsic one. Consequently \(L_\mathrm{bol}(t)\) is the integral of the attenuated \(L_\nu\) (this is what keeps eval_bolometric consistent with eval and the normalized spectrum integrating to 1), and it is lower than the wrapped SED’s own bolometric luminosity by the fraction absorbed. Set A_V=0 to recover the intrinsic SED exactly.

The bolometric integral has no closed form here. It is evaluated on a fixed, log-spaced grid in \(h\nu\) (_LOG_HNU_EV_GRID) with the trapezoidal rule in \(\ln\nu\), in chunks to bound memory.

Variables:
  • DUST_LAW (str) – Name of the reddening law, as registered in uvex_transients.dust ("g23"). The law must be affine in \(1/R_V\), which is what lets \(R_V\) differ from draw to draw.

  • HOST_DUST_PARAMETERS (dict of str to Parameter) – A_V (exponential, mean 0.4 mag) and R_V (normal, \(2.70 \pm 0.25\), truncated to the 2.3 to 5.6 range that G23 is defined on). The \(R_V\) width is that of the quoted uncertainty on the mean, less than the 95% upper limit of 0.61 on the population scatter.

Methods

Attributes

DUST_LAW

Reddening law of the host dust, looked up in uvex_transients.dust.

HOST_DUST_PARAMETERS