sdapy.snerun.snobject.get_local_spectra

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

Parse amd add local ZTF fritz/marshal spectra to snobject.spec.

Parameters
sourcestr

fritz, or marshal, or None for both

verbosebool

show detailed running informations

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 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

Notes

  • Download ZTF spectra file in advance, with snobject.query_spectra.

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

  • This function is dealing with ZTF private spectra file from private brokers, i.e. the Growth marshal and the fritz, which are dedicated for the internal ZTF users. In order to use it, one need to define their user information in the auth.txt file.