sdapy.snerun.snobject._cal_spectrum¶
- snobject._cal_spectrum(ws, fluxes, efluxes, phase, interpolation=None, index=0, mangling_function='linear', **kwargs)¶
Absolute calibrate or mangle the spetrum
- Parameters
- wslist
spectrum wavelengths, unit in A
- fluxeslist
spectrum fluxes, arbitrary unit
- efluxeslist
spectrum flux errors, arbitrary unit
- phasefloat
spectrum phase, used to get absolute mag from interpolations
- sed_abscal_methodstr
how to use photometry to calibrate the spectra:
[cal]ibrate
[mangle] the spetra
- sed_abscal_bandsstr
which photometry bands to be used to absolute calibrate the selected spectra
- mangling_functionstr
mangling function
- maxfevfloat
for scipy. The maximum number of calls to the function.
- Returns
- fluxeslist
spectrum fluxes, unit in erg/s/A
- efluxeslist
spectrum flux errors, unit in erg/s/A
Notes
More parameters can be input for snobject._mag_at, snobject.sym_mag, snobject._to_luminosity.