ReFRACtor
|
Given a single frame of data, estimate the spectral shift in band 1P. More...
#include <dispersion_fit.h>
Public Member Functions | |
DispersionFit (const boost::shared_ptr< Level1bSampleCoefficient > &Level1b) | |
Initialize class with data needed to perform fit. More... | |
blitz::Array< double, 2 > | fit (const blitz::Array< double, 2 > disp_initial, const DoubleWithUnit &aband_solar_line_location, const DoubleWithUnit &aband_solar_line_width, const DoubleWithUnit &aband_search_width, const DoubleWithUnit &aband_ils_offset, const ArrayWithUnit< double, 1 > &offset_scaling) const |
void | print (std::ostream &Os) const |
std::string | print_to_string () const |
Print to string. More... | |
blitz::Array< double, 1 > | shift () const |
Return computed shift in each band. More... | |
Given a single frame of data, estimate the spectral shift in band 1P.
This is accomplished by using the strong solar line at 12985.163 wavenumbers. This is in the a-band continuum and is really the only local feature there.
Note: This routine fits for a global shift, which INCLUDES the instrument doppler shift. If this is not desired, the user must subtract off the instrument doppler shift.
Original Author: Chris Odell Converted from IDL
Definition at line 18 of file dispersion_fit.h.
DispersionFit::DispersionFit | ( | const boost::shared_ptr< Level1bSampleCoefficient > & | Level1b | ) |
Initialize class with data needed to perform fit.
Definition at line 37 of file dispersion_fit.cc.
blitz::Array< double, 2 > DispersionFit::fit | ( | const blitz::Array< double, 2 > | disp_initial, |
const DoubleWithUnit & | aband_solar_line_location, | ||
const DoubleWithUnit & | aband_solar_line_width, | ||
const DoubleWithUnit & | aband_search_width, | ||
const DoubleWithUnit & | aband_ils_offset, | ||
const ArrayWithUnit< double, 1 > & | offset_scaling | ||
) | const |
Definition at line 42 of file dispersion_fit.cc.
void DispersionFit::print | ( | std::ostream & | Os | ) | const |
Definition at line 181 of file dispersion_fit.cc.
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.
|
inline |
Return computed shift in each band.
Definition at line 30 of file dispersion_fit.h.