SBART.utils.RV_utilities.continuum_fit

SBART.utils.RV_utilities.continuum_fit#

Functions

fit_continuum_level(spectra_wave, spectra, ...)

match_continuum_levels(spectra_wave, ...[, ...])

Match the continuum level of the template to that of the provided observation.

polynomial_continuum_model(x, *model_coeffs)

stretch_continuum_nodel(x, template, ...)

Implements the model specified by Xavier Dumusque:

polynomial_continuum_model(x, *model_coeffs)#
stretch_continuum_nodel(x, template, *model_coeffs)#
Implements the model specified by Xavier Dumusque:

A*Template + B*lambda + C

Parameters:
  • x – Wavelength solution in which the model will be evaluated

  • model_coeffs – Coefficients of the model, where the leftmost entry is A and all other entries are a polynomial

  • template – The data that will be “scaled up”

fit_continuum_level(spectra_wave, spectra, template, interpolate_wave_indexes, fit_degree, continuum_type)#
match_continuum_levels(spectra_wave, spectra, template, interpolate_wave_indexes, fit_degree, continuum_type, template_uncertainties=None)#

Match the continuum level of the template to that of the provided observation. If the template uncertainties are passed, it will also update them, accounting for the normalization step!

Parameters:
  • spectra_wave

  • spectra

  • template

  • interpolate_wave_indexes

  • fit_degree (int) –

  • continuum_type (str) –

  • template_uncertainties