This class contains various methods to extract (and resample) PER FIBER spectra from a single VIRUS frame. Not directly used by cure, but useful to extract (rectified) 1D spectra for processing in other packages or for visualization.
Extractor::Extractor | ( | const Distortion & | D | ) | [inline] |
Extractor::Extractor | ( | const Extractor & | other | ) | [inline] |
virtual Extractor::~Extractor | ( | ) | [inline, virtual] |
MArray< float, 1 > Extractor::extract_aperture | ( | const MArray< float, 2 > & | Data, | |
int | fibernum, | |||
float | aperture | |||
) | const |
References D_, Distortion::get_reference_f(), and Distortion::map_xy_wavelength().
Referenced by extract_fibers_in_aperture(), main(), measure_5577_flux(), mkimage(), and mkimage_list().
MArray< float, 1 > Extractor::extract_aperture | ( | const MArray< float, 2 > & | Data, | |
int | fibernum, | |||
float | aperture, | |||
float | w1, | |||
float | w2, | |||
int | nw | |||
) | const |
References D_, extract_core(), and Distortion::get_reference_f().
MArray< float, 1 > Extractor::extract_aperture_x | ( | const MArray< float, 2 > & | Data, | |
int | fibernum, | |||
float | aperture | |||
) | const |
References D_, extract_core_x(), and Distortion::get_reference_f().
Referenced by main().
MArray< float, 1 > Extractor::extract_aperture_ac | ( | const MArray< float, 2 > & | Data, | |
int | fibernum, | |||
float | aperture, | |||
float | w1, | |||
float | w2, | |||
int | nw, | |||
const FiberModel & | F | |||
) | const |
References D_, extract_core_ac(), and Distortion::get_reference_f().
Referenced by main().
MArray< float, 1 > Extractor::extract_aperture_x_ac | ( | const MArray< float, 2 > & | Data, | |
int | fibernum, | |||
float | aperture, | |||
const FiberModel & | F | |||
) | const |
References D_, extract_core_x_ac(), and Distortion::get_reference_f().
Referenced by main().
MArray< float, 1 > Extractor::extract_fiber | ( | const MArray< float, 2 > & | Data, | |
int | fibernum, | |||
float | w1, | |||
float | w2, | |||
int | nw | |||
) | const |
References D_, extract_core(), and Distortion::get_reference_f().
MArray< float, 1 > Extractor::extract_fiber | ( | const MArray< float, 2 > & | Data, | |
int | fibernum | |||
) | const |
References D_, extract_core(), Distortion::get_reference_f(), and Distortion::map_xy_wavelength().
void Extractor::extract_aperture_w_rebin | ( | const MArray< float, 2 > & | I, | |
const MArray< float, 2 > & | e_I, | |||
const float | fl, | |||
const float | fu, | |||
float | dw, | |||
const bool | logw, | |||
MArray< float, 1 > & | S2, | |||
MArray< float, 1 > & | e_S2 | |||
) | const |
References __maxx__, __maxy__, __minx__, __miny__, c, D_, getAffectedPixel(), polygon::PolygonIntersection::inter(), Distortion::map_wf_x(), Distortion::map_wf_y(), Distortion::map_xy_wavelength(), P, toPolygon(), polygon::point::x, and polygon::point::y.
Referenced by main().
MArray< float, 1 > Extractor::get_wavelengths | ( | const MArray< float, 2 > & | Data, | |
int | fibernum | |||
) | const |
References D_, Distortion::get_reference_f(), and Distortion::map_xy_wavelength().
MArray< float, 1 > Extractor::get_wavelengths | ( | float | w1, | |
float | w2, | |||
int | nw | |||
) | const |
MArray< float, 1 > Extractor::extract_core | ( | const MArray< float, 2 > & | Data, | |
float | fl, | |||
float | fu, | |||
float | w1, | |||
float | w2, | |||
int | nw | |||
) | const [protected] |
Common core of all fiber aperture extraction routines that resample in wavelength Extracts in a range of f in {fl,fu} and w in {w1,w2}
References D_, and Resampler< Interpolator, Transform >::resample_wf().
Referenced by extract_aperture(), and extract_fiber().
MArray< float, 1 > Extractor::extract_core_ac | ( | const MArray< float, 2 > & | Data, | |
const int | fiber, | |||
float | fl, | |||
float | fu, | |||
float | w1, | |||
float | w2, | |||
int | nw, | |||
const FiberModel & | F | |||
) | const [protected] |
Common core of all fiber aperture extraction routines that resample in wavelength Extracts in a range of f in {fl,fu} and w in {w1,w2} This version applies an aperture corretion.
Common core of all fiber aperture extraction routines that resample in wavelength Extracts in a range of f in {fl,fu} and w in {w1,w2} This version applies an aperture correction.
References D_, Resampler< Interpolator, Transform >::resample_wf(), and FiberModel::single_fiber_flat().
Referenced by extract_aperture_ac().
MArray< float, 1 > Extractor::extract_core_x | ( | const MArray< float, 2 > & | Data, | |
float | fl, | |||
float | fu | |||
) | const [protected] |
Common core of all fiber aperture extraction routines that do not resample wavelegths Extracts in a range of f in {fl,fu}, leaving the x coordinate untouched.
References D_, and Resampler< Interpolator, Transform >::resample_xy_xf().
Referenced by extract_aperture_x().
MArray< float, 1 > Extractor::extract_core_x_ac | ( | const MArray< float, 2 > & | Data, | |
const int | fibernum, | |||
float | fl, | |||
float | fu, | |||
const FiberModel & | F | |||
) | const [protected] |
Common core of all fiber aperture extraction routines that do not resample wavelegths Extracts in a range of f in {fl,fu}, leaving the x coordinate untouched. This version applies an aperture corretion.
Common core of all fiber aperture extraction routines that do not resample wavelegths Extracts in a range of f in {fl,fu}, leaving the x coordinate untouched. This version applies an aperture correction.
References D_, Resampler< Interpolator, Transform >::resample_xy_xf(), and FiberModel::single_fiber_flat().
Referenced by extract_aperture_x_ac().
string Extractor::version = "$Id: extractor.cpp 1032 2015-07-10 18:35:34Z drory $" [static] |
const Distortion& Extractor::D_ [protected] |