sdapy.snerun.snobject._rate_at

snobject._rate_at(filt, phase1, phase2, interpolation=None, index=0, **kwargs)

Estimate the magnitude different of two phases on a given filter.

Parameters
filtstr

filter

phase1float

rest frame phase 1 (days) relative to t0

phase2float

rest frame phase 2 (days) relative to t0

tdbinfloat

threshold for binning

interpolationstr

estimate flux with data epoch less than than tdbin, or interpolation from GP/fits

indexint

if multiple models available, which of them to be used

quantilelist

use 50 percentile as mean, and 1 sigma (68%% -> 16%% - 84%%) as errors

clobberbool

Redo analysis

zpfloat

zeropoint to convert magnitude to flux. zp = 23.9 for micro Jansky to AB mag zp = 48.6 for ergs/s/cm2/Hz to AB mag e.g. mab = -2.5 * log10(fv[Jy]/3631) = -2.5 * log10(fv[mJy]) + 2.5*log10(3631*1e6)

snrtfloat

SNR threshold to distinguish detection/limit

Returns
ratefloat
rate errorfloat

See also

sbobject._flux_at, sbobject._mag_at