sdapy.snerun.snobject.get_external_spectra

snobject.get_external_spectra(filename, epoch, tel='', **kwargs)

Parse and add user defined photometric data to snobject.spec.

Parameters
filenamestr

filename. All lines starting with # will be skipped. The first line should be the header, at least including: wave and flux columns, while in the following lines are the data. All should be seperated with spaces.

epochstr

astropy.time, that will be used to calculate the phase

telstr

telescope/instrument

rvfloat

E(B-V) to AV, default is 3.1

bin_methodstr

method used to bin spectrum

bin_sizefloat

size used to bin spectrum, unit in A

savgol_orderfloat

polynomial order for savgol filter

continuum_methodstr

The function type for continumm fitting, valid functions are:

  • scalar

  • linear

  • quadratic

  • cubic

  • poly

  • exponential

continuum_degreefloat

degree of polynomial when continuum_method = poly, for continuum fitting

See also

specline_handler.handle_spectra, snobject.get_local_spectra

Notes

The spectra file will be read and pre-processed by specline_handler.handle_spectra