sdapy.snerun.snobject.add_mag

snobject.add_mag(source=None, **kwargs)

add mag and/or limmag/emag column, based on flux, eflux column.

Parameters
sourcestr

source name, if None will add flux column for all data

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