Data preprocessing functions

StellarSpectraObservationFitting.fit_continuumMethod
fit_continuum(x, y, σ²; ignore_weights=false, order=6, nsigma=[0.5,3.0], maxniter=50, edge_mask::Int=0)

Fit the continuum of y with a polynomial of order order using assymetric sigma-clipping, similar to wobble

source
StellarSpectraObservationFitting.mask_bad_edges!Method
mask_bad_edges!(y, σ², log_λ_star, log_λ_star_bounds; window_width=128, min_snr=8., verbose=true, always_mask_something=false, edges=nothing, kwargs...)

Mask out edges of y (either given by edges or where y/σ is on average below min_snr)

source
StellarSpectraObservationFitting.process!Method
process!(d; λ_thres=4000., min_snr=8, kwargs...)

Doing all of the data preprocessing, including continuum-fitting and masking of infinite points, anomalously snappy or high pixels, and low SNR edges.

source