sdapy.snerun.snobject.correct_baseline

snobject.correct_baseline(baseline, key='fcqfid', source='ztffp', **kwargs)

Correct baseline for ZTF, when targets was covered by multiple CCDs.

Parameters
baselinedictionary

data returned from self.calibrate_baseline

keystr

which column to distinguish photometry between different fields/ccds

sourcestr

which source of lc to be corrected

zpfloat

zeropoint to convert flux to magnitude. 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

Notes

This function was only tested with ZTF forced photometry.