EchelleSpectrum¶
-
class
chia.EchelleSpectrum(orders, header=None)[source] [edit on github]¶ Bases:
objectEchelle spectrum object, which stores each order as a
Spectrumobject.Methods Summary
continuum_normalize(self[, bins, order])Normalize the continuum in each echelle order to unity.
from_e2ds(path[, harps])Read HARPS(-N) spectrum from an E2DS FITS file.
nearest_order(self, wavelength)Return the order with the central wavelength nearest to
wavelength.plot(self[, ax])Plot the echelle spectrum
Methods Documentation
-
continuum_normalize(self, bins=5, order=2)[source] [edit on github]¶ Normalize the continuum in each echelle order to unity.
- Parameters
- binsint
Number of bins used to compute maxes for continuum tracing
- orderint
Polynomial order fit to the binned-maxes
-
classmethod
from_e2ds(path, harps=True)[source] [edit on github]¶ Read HARPS(-N) spectrum from an E2DS FITS file.
- Parameters
- pathstr
Path to FITS file
- harpsbool (optional)
True for HARPS, False for HARPS-N
- Returns
- sp
EchelleSpectrum Echelle spectrum object
- sp
-
nearest_order(self, wavelength)[source] [edit on github]¶ Return the order with the central wavelength nearest to
wavelength.- Parameters
- wavelengthfloat
Reference wavelength
- Returns
- spectrum
Spectrum
- spectrum
-
plot(self, ax=None, **kwargs)[source] [edit on github]¶ Plot the echelle spectrum
-