sdapy.snerun.snobject.get_alert_ztf

snobject.get_alert_ztf(source='marshal', **kwargs)

Parse and add local ZTF alert photometic data to snobject.lc.

Parameters
sourcestr

which one to parse: from Growth [marshal], or [fritz]

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 is dealing with ZTF alter photometry file from private brokers, i.e. the Growth marshal and the fritz, which are dedicated for the internal ZTF users. In order to use it, one need to define their user information in the auth.txt file.

  • Download ZTF alter photometry in advance, with snobject.query_alert_ztf.

  • The ZTF alert photometry file will be read as pandas.dataframe, and added to snobject.lc with snobject.add_lc. Then snobject.add_flux or snobject.add_mag will be called if mag or flux items are missing.