Extractor Class Reference

Public Member Functions

Static Public Attributes

Protected Member Functions

Protected Attributes


Detailed Description

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.


Constructor & Destructor Documentation

Extractor::Extractor ( const Distortion D  )  [inline]
Extractor::Extractor ( const Extractor other  )  [inline]
virtual Extractor::~Extractor (  )  [inline, virtual]

Member Function Documentation

MArray< float, 1 > Extractor::extract_aperture ( const MArray< float, 2 > &  Data,
int  fibernum,
float  aperture 
) const
MArray< float, 1 > Extractor::extract_aperture ( const MArray< float, 2 > &  Data,
int  fibernum,
float  aperture,
float  w1,
float  w2,
int  nw 
) const
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
MArray< float, 1 > Extractor::extract_fiber ( const MArray< float, 2 > &  Data,
int  fibernum 
) const
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
MArray< float, 1 > Extractor::get_wavelengths ( const MArray< float, 2 > &  Data,
int  fibernum 
) const
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().


Field Documentation

string Extractor::version = "$Id: extractor.cpp 1032 2015-07-10 18:35:34Z drory $" [static]
const Distortion& Extractor::D_ [protected]

Generated on 4 Nov 2015 for CURE by  doxygen 1.6.1