ReFRACtor
FullPhysics::DispersionFit Class Reference

Given a single frame of data, estimate the spectral shift in band 1P. More...

#include <dispersion_fit.h>

+ Inheritance diagram for FullPhysics::DispersionFit:
+ Collaboration diagram for FullPhysics::DispersionFit:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DispersionFit()

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.

Member Function Documentation

◆ fit()

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.

◆ print()

void DispersionFit::print ( std::ostream &  Os) const

Definition at line 181 of file dispersion_fit.cc.

◆ print_to_string()

std::string FullPhysics::Printable< DispersionFit >::print_to_string ( ) const
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.

◆ shift()

blitz::Array<double, 1> FullPhysics::DispersionFit::shift ( ) const
inline

Return computed shift in each band.

Definition at line 30 of file dispersion_fit.h.


The documentation for this class was generated from the following files:

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:12