Construct (smoothed) estimates of the total flux per fiber in one VIRUS frame. Subtract this continuum estimate from a 2D data frame.
Continuum::Continuum | ( | const MArray< float, 2 > & | Data, | |
const MArray< float, 2 > & | Data_err, | |||
const Distortion & | D, | |||
const FiberModel & | F | |||
) | [inline] |
Continuum::Continuum | ( | const Continuum & | other | ) |
virtual Continuum::~Continuum | ( | ) | [inline, virtual] |
MArray< float, 1 > Continuum::get_sn_fiber | ( | ) | const |
Calculate and return the total S/N in each fiber.
References D_, Data_, Data_err_, Distortion::get_reference_f(), and Distortion::map_xy_fibernum().
Referenced by find_continuum_sources().
MArray< float, 2 > Continuum::get_continua | ( | const float | maxdist, | |
MArray< float, 2 > & | error | |||
) | const |
Calculate a spectrum of each fiber, and return in a Nx by nfibers array. Only pixels close to the center of the fiber are used.
Collapse and add the spectrum of each fiber, and return in a Nx by nfibers array.
References D_, Data_, Data_err_, F_, Distortion::get_reference_f(), FiberModel::get_single_fiberprofile(), Distortion::map_xy_fiber(), and Distortion::map_xy_fibernum().
Referenced by VFrame::calc_continua(), and main().
void Continuum::smooth_continua | ( | MArray< float, 2 > & | Cont, | |
MArray< float, 2 > & | Err, | |||
const int | window | |||
) | const |
Calculate a smoothed version of the input spectrum.
Calculate a smoothed version of the spectrum of each fiber, and return in a Nx by nfibers array.
References smooth_spectrum_average(), and smooth_spectrum_median().
Referenced by VFrame::calc_continua(), and main().
MArray< float, 2 > Continuum::subtract_continuum | ( | const MArray< float, 2 > & | SmoothedCont | ) | const |
Return a continuum-subtracted version of the science frame we are holding a reference to
References D_, Data_, F_, FiberModel::get_single_fiberprofile(), and Distortion::map_xy_fibernum().
Referenced by main(), and VFrame::subtract_continua().
MArray< float, 1 > Continuum::smooth_spectrum_average | ( | const MArray< float, 1 > & | Data, | |
const int | window | |||
) | const [protected] |
bosxcar-average smooth a 1D spectrum
boxcar-average smooth a 1D spectrum
Referenced by smooth_continua().
MArray< float, 1 > Continuum::smooth_spectrum_median | ( | const MArray< float, 1 > & | Data, | |
const int | window, | |||
const float | kappa | |||
) | const [protected] |
Kappa-sigma clipping smooth a 1D spectrum
Referenced by smooth_continua().
MArray< float, 1 > Continuum::smooth_spectrum_spline | ( | const MArray< float, 1 > & | Data, | |
const MArray< float, 1 > & | w, | |||
const float | wavelength | |||
) | const [protected] |
Spline-smooth a 1D spectrum
const MArray<float,2> Continuum::Data_ [protected] |
Referenced by get_continua(), get_sn_fiber(), and subtract_continuum().
const MArray<float,2> Continuum::Data_err_ [protected] |
Referenced by get_continua(), and get_sn_fiber().
const Distortion Continuum::D_ [protected] |
Referenced by get_continua(), get_sn_fiber(), and subtract_continuum().
const FiberModel Continuum::F_ [protected] |
Referenced by get_continua(), and subtract_continuum().