sdapy.snerun.snobject.get_external_phot¶
- snobject.get_external_phot(filename, source='myfavour', **kwargs)¶
Parse and add user defined photometric data to
snobject.lc- Parameters
- filenamestr
path of the photometric file
- sourcestr
source name, if None will add flux column for all data
- magkeystr
meta key for AB magnitude
- emagkeystr
meta key for magnitude error
- limmagkeystr
meta key for limiting magnitude
- fluxkeystr
meta key for flux, unit in 1e-6 Jy
- efluxkeystr
meta key for flux error
- filterkeystr
meta key for filters
- jdkeystr
meta key for julian date
- 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
See also
Notes
After reading filename into
pandas.dataframe,snobject.add_lcwill be called to add the dataframe intosnobject.lc, and ifmagorfluxitem missed,snobject.add_fluxorsnobject.add_magwill be called correspondingly.