sdapy.snerun.snobject.get_oac¶
- snobject.get_oac(which='photometry', **kwargs)¶
Parse and add local Open Astronomical Catalog data to
snobject.lc(with source name asoac)- Parameters
- whichstr
which to parse: photometry or spectra
- verbosebool
Enable progress report
- clobberbool
Redo analysis
- if which = photometry
- 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
- if which = spectra
- rvfloat
E(B-V) to AV, default is 3.1
- bin_methodstr
method used to bin spectrum
- bin_sizefloat
size used to bin spectrum, in AA
- savgol_orderfloat
polynomial order for savgol filter
- continuum_methodstr
The function type for continumm fitting, valid functions are “scalar”, “linear”, “quadratic”, “cubic”, “poly”, and “exponential”
- continuum_degreefloat
degree of polynomial when method=”poly”, for continuum fitting
See also
snobject.query_oac,snobject.add_lc,snobject.add_flux,snobject.add_mag,specline_handler.handle_spectra
Notes
Download OAC photometry or spectra file in advance, with snobject.query_oac.
The OAC photometry file will be read as
pandas.dataframe, and added tosnobject.lcwithsnobject.add_lc. Thensnobject.add_fluxorsnobject.add_magwill be called ifmagorfluxitems are missing.The OAC spectra file will be read and pre-processed by specline_handler.handle_spectra
The OAC data are open public, and no registrations are needed in advance.