Multiband features
These experimental features work with multi-band light curves.
light_curve.ColorOfMedian
Bases: light_curve.light_curve_py.features._base.BaseMultiBandFeature
Difference of median magnitudes in two bands.
light_curve.RainbowFit
Bases: light_curve.light_curve_py.features.rainbow._base.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' |
'sigmoid'
|
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 |
bolometric = 'bazin'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
temperature = 'sigmoid'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
peak_time
Returns true bolometric peak position for given parameters