sdapy.snerun.snobject._to_luminosity

snobject._to_luminosity(m, f, em=None, **kwargs)

Convert magnitude to luminosity.

Parameters
mfloat

apparent (AB) magnitude. For UV/NIR, if input is AB, set ab2vega True, otherwise leave it False.

emfloat

apparent magnitude error

fstr

filter

ab2vegabool

set it True if input UV/IR data in AB, if they’re vega, set to False

do_kcorrbool

K corrected the photometry or spectra

Returns
fluxfloat

flux, unit in erg/s/A

dfluxfloat

flux error, unit in erg/s/A

wfloat

central wavelength, unit in A

bandwidthfloat

band width, unit in A