Multiband parametric fit¶
light_curve.RainbowFit
¶
Bases: BaseRainbowFit
Multiband blackbody fit to the light curve using functions to be chosen by the user
Note, that m and corresponded sigma are assumed to be flux densities.
Based on Russeil et al. 2023, arXiv:2310.02916.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
band_wave_cm
|
dict
|
Dictionary of band names and their effective wavelengths in cm. |
required |
with_baseline
|
bool
|
Whether to include an offset in the fit, individual for each band. If it is true, one more fit paramter per passband is added - the additive constant with the same units as input flux. |
True
|
bolometric
|
str or BaseBolometricTerm subclass
|
The shape of bolometric term. Default is 'bazin'. Other options are: 'sigmoid' |
'bazin'
|
temperature
|
str or BaseTemperatureTerm subclass
|
The shape of temperature term. Default is 'sigmoid'.
Other options are: 'constant', 'delayed_sigmoid'.
The sigmoid terms are parametrized by the mid temperature |
'sigmoid'
|
spectral
|
str or BaseSpectralTerm subclass
|
The spectral SED model. Default is 'planck' (standard blackbody, no extra fit parameters). The other terms describe SEDs that deviate from a blackbody; each reduces to Planck at a null parameter value, with a weak Gaussian prior anchoring it there so a true blackbody is recovered unbiased:
|
'planck'
|
optimizer
|
str
|
Optimizer backend: 'iminuit' (default, robust Migrad) or 'least_squares' (scipy Trust Region Reflective). The latter shares the same analytic Jacobian and is usually faster; it transparently falls back to iminuit for upper-limit fits, term combinations without analytic derivatives, or when it fails to converge. |
'iminuit'
|
Methods:
| Name | Description |
|---|---|
__call__ |
Evaluate the feature. Positional arguments are numpy arrays of the same length,
|
model |
Evaluate Rainbow model on the given arrays of times and bands. |
peak_time |
Return bolometric peak time for given set of parameters |
fit_and_get_errors |
The same as |