ReFRACtor
FullPhysics::LidortLambertianFixture Class Reference

This is a test fixture that creates a Atmosphere, Statevector, and LidortRt based on the ConfigurationFixture. More...

#include <lidort_fixture.h>

+ Inheritance diagram for FullPhysics::LidortLambertianFixture:
+ Collaboration diagram for FullPhysics::LidortLambertianFixture:

Public Member Functions

 LidortLambertianFixture (const std::string &Config_file="config.lua")
 
virtual ~LidortLambertianFixture ()
 
std::string absco_4d_dir () const
 Location of absco 4d table. More...
 
std::string absco_data_dir () const
 Location of absco table. More...
 
void add_file_to_cleanup (const std::string &Fname)
 
SpectralDomain highres_grid (int Spec_index) const
 
DoubleWithUnit ils_half_width (int Spec_index) const
 Useful function that appears in a few tests, so collect here. More...
 
std::string input_dir () const
 Directory where input data such as static input files and default Lua configuration files are located. More...
 
SpectralDomain lowres_grid (int Spec_index) const
 
std::string merra_data_dir () const
 Location of merra data. More...
 
std::string test_data_dir () const
 Directory where test data is. More...
 
void turn_on_logger () const
 Normally log messages don't go anywhere, so we don't clutter our unit test output. More...
 

Public Attributes

blitz::Array< double, 1 > azm
 
boost::shared_ptr< Absorberconfig_absorber
 
boost::shared_ptr< Aerosolconfig_aerosol
 
boost::shared_ptr< RtAtmosphereconfig_atmosphere
 
boost::shared_ptr< ErrorAnalysisconfig_error_analysis
 
boost::shared_ptr< ForwardModelconfig_forward_model
 
boost::shared_ptr< Groundconfig_ground
 
boost::shared_ptr< InitialGuessconfig_initial_guess
 
boost::shared_ptr< Instrumentconfig_instrument
 
boost::shared_ptr< Level1bSampleCoefficientconfig_level_1b
 
boost::shared_ptr< Observationconfig_observation
 
boost::shared_ptr< Pressureconfig_pressure
 
boost::shared_ptr< PressureLevelInputconfig_pressure_level_input
 
std::vector< boost::shared_ptr< RegisterOutputBase > > config_register_output
 
boost::shared_ptr< RadiativeTransferconfig_rt
 
boost::shared_ptr< ConnorSolverconfig_solver
 
boost::shared_ptr< SpectralWindowconfig_spectral_window
 
boost::shared_ptr< SpectrumSamplingconfig_spectrum_sampling
 
boost::shared_ptr< StateVectorconfig_state_vector
 
boost::shared_ptr< Temperatureconfig_temperature
 
blitz::Array< double, 1 > epsilon
 This is an epsilon that can be used to generate finite difference Jacobians for unit tests. More...
 
boost::shared_ptr< LidortRtlidort_rt
 Lidort driver to use in testing. More...
 
LuabindObject lua_config
 
std::string pp_and_ss_expected_filename
 
std::string pp_expected_filename
 
std::string ps_expected_filename
 
bool pure_nadir
 
boost::shared_ptr< StokesCoefficientstokes_coefs
 
blitz::Array< double, 1 > sza
 solar zenith, view zenith, and azimuth angles used in low_rt and high_rt. More...
 
blitz::Array< double, 1 > wn_arr
 Wavenumber array used for testing. More...
 
blitz::Array< double, 1 > zen
 

Detailed Description

This is a test fixture that creates a Atmosphere, Statevector, and LidortRt based on the ConfigurationFixture.

Definition at line 113 of file lidort_fixture.h.

Constructor & Destructor Documentation

◆ LidortLambertianFixture()

LidortLambertianFixture::LidortLambertianFixture ( const std::string &  Config_file = "config.lua")

Definition at line 130 of file lidort_fixture.cc.

◆ ~LidortLambertianFixture()

virtual FullPhysics::LidortLambertianFixture::~LidortLambertianFixture ( )
inlinevirtual

Definition at line 117 of file lidort_fixture.h.

Member Function Documentation

◆ absco_4d_dir()

std::string GlobalFixture::absco_4d_dir ( ) const
inherited

Location of absco 4d table.

Note that all of the Absco is going to be 4d in the future, so this can eventually go away. But for now most of the unit tests are 3d except for the few depending on the newer 4d tables.

Definition at line 140 of file global_fixture.cc.

◆ absco_data_dir()

std::string GlobalFixture::absco_data_dir ( ) const
inherited

Location of absco table.

Definition at line 101 of file global_fixture.cc.

◆ add_file_to_cleanup()

void FullPhysics::GlobalFixture::add_file_to_cleanup ( const std::string &  Fname)
inlineinherited

Definition at line 23 of file global_fixture.h.

◆ highres_grid()

SpectralDomain FullPhysics::ConfigurationFixture::highres_grid ( int  Spec_index) const
inlineinherited

Definition at line 67 of file configuration_fixture.h.

◆ ils_half_width()

DoubleWithUnit FullPhysics::ConfigurationFixture::ils_half_width ( int  Spec_index) const
inlineinherited

Useful function that appears in a few tests, so collect here.

Definition at line 62 of file configuration_fixture.h.

◆ input_dir()

std::string GlobalFixture::input_dir ( ) const
inherited

Directory where input data such as static input files and default Lua configuration files are located.

Definition at line 63 of file global_fixture.cc.

◆ lowres_grid()

SpectralDomain FullPhysics::ConfigurationFixture::lowres_grid ( int  Spec_index) const
inlineinherited

Definition at line 64 of file configuration_fixture.h.

◆ merra_data_dir()

std::string GlobalFixture::merra_data_dir ( ) const
inherited

Location of merra data.

Definition at line 119 of file global_fixture.cc.

◆ test_data_dir()

std::string GlobalFixture::test_data_dir ( ) const
inherited

Directory where test data is.

This already includes the trailing slash, so you can just do test_data_data() + "foo.txt" in your unit tests.

Definition at line 83 of file global_fixture.cc.

◆ turn_on_logger()

void GlobalFixture::turn_on_logger ( ) const
inherited

Normally log messages don't go anywhere, so we don't clutter our unit test output.

But in some cases you may want to the logger turned on. This automatically gets turned off again at the end of the unit test.

Definition at line 52 of file global_fixture.cc.

Member Data Documentation

◆ azm

blitz::Array<double, 1> FullPhysics::LidortRtCommonFixture::azm
inherited

Definition at line 98 of file lidort_fixture.h.

◆ config_absorber

boost::shared_ptr<Absorber> FullPhysics::ConfigurationFixture::config_absorber
inherited

Definition at line 41 of file configuration_fixture.h.

◆ config_aerosol

boost::shared_ptr<Aerosol> FullPhysics::ConfigurationFixture::config_aerosol
inherited

Definition at line 42 of file configuration_fixture.h.

◆ config_atmosphere

boost::shared_ptr<RtAtmosphere> FullPhysics::ConfigurationFixture::config_atmosphere
inherited

Definition at line 43 of file configuration_fixture.h.

◆ config_error_analysis

boost::shared_ptr<ErrorAnalysis> FullPhysics::ConfigurationFixture::config_error_analysis
inherited

Definition at line 46 of file configuration_fixture.h.

◆ config_forward_model

boost::shared_ptr<ForwardModel> FullPhysics::ConfigurationFixture::config_forward_model
inherited

Definition at line 57 of file configuration_fixture.h.

◆ config_ground

boost::shared_ptr<Ground> FullPhysics::ConfigurationFixture::config_ground
inherited

Definition at line 56 of file configuration_fixture.h.

◆ config_initial_guess

boost::shared_ptr<InitialGuess> FullPhysics::ConfigurationFixture::config_initial_guess
inherited

Definition at line 49 of file configuration_fixture.h.

◆ config_instrument

boost::shared_ptr<Instrument> FullPhysics::ConfigurationFixture::config_instrument
inherited

Definition at line 51 of file configuration_fixture.h.

◆ config_level_1b

boost::shared_ptr<Level1bSampleCoefficient> FullPhysics::ConfigurationFixture::config_level_1b
inherited

Definition at line 55 of file configuration_fixture.h.

◆ config_observation

boost::shared_ptr<Observation> FullPhysics::ConfigurationFixture::config_observation
inherited

Definition at line 58 of file configuration_fixture.h.

◆ config_pressure

boost::shared_ptr<Pressure> FullPhysics::ConfigurationFixture::config_pressure
inherited

Definition at line 52 of file configuration_fixture.h.

◆ config_pressure_level_input

boost::shared_ptr<PressureLevelInput> FullPhysics::ConfigurationFixture::config_pressure_level_input
inherited

Definition at line 45 of file configuration_fixture.h.

◆ config_register_output

std::vector<boost::shared_ptr<RegisterOutputBase> > FullPhysics::ConfigurationFixture::config_register_output
inherited

Definition at line 50 of file configuration_fixture.h.

◆ config_rt

boost::shared_ptr<RadiativeTransfer> FullPhysics::ConfigurationFixture::config_rt
inherited

Definition at line 59 of file configuration_fixture.h.

◆ config_solver

boost::shared_ptr<ConnorSolver> FullPhysics::ConfigurationFixture::config_solver
inherited

Definition at line 47 of file configuration_fixture.h.

◆ config_spectral_window

boost::shared_ptr<SpectralWindow> FullPhysics::ConfigurationFixture::config_spectral_window
inherited

Definition at line 48 of file configuration_fixture.h.

◆ config_spectrum_sampling

boost::shared_ptr<SpectrumSampling> FullPhysics::ConfigurationFixture::config_spectrum_sampling
inherited

Definition at line 54 of file configuration_fixture.h.

◆ config_state_vector

boost::shared_ptr<StateVector> FullPhysics::ConfigurationFixture::config_state_vector
inherited

Definition at line 44 of file configuration_fixture.h.

◆ config_temperature

boost::shared_ptr<Temperature> FullPhysics::ConfigurationFixture::config_temperature
inherited

Definition at line 53 of file configuration_fixture.h.

◆ epsilon

blitz::Array<double, 1> FullPhysics::ConfigurationFixture::epsilon
inherited

This is an epsilon that can be used to generate finite difference Jacobians for unit tests.

Definition at line 73 of file configuration_fixture.h.

◆ lidort_rt

boost::shared_ptr<LidortRt> FullPhysics::LidortRtCommonFixture::lidort_rt
inherited

Lidort driver to use in testing.

Definition at line 91 of file lidort_fixture.h.

◆ lua_config

LuabindObject FullPhysics::ConfigurationFixture::lua_config
inherited

Definition at line 75 of file configuration_fixture.h.

◆ pp_and_ss_expected_filename

std::string FullPhysics::LidortRtCommonFixture::pp_and_ss_expected_filename
inherited

Definition at line 106 of file lidort_fixture.h.

◆ pp_expected_filename

std::string FullPhysics::LidortRtCommonFixture::pp_expected_filename
inherited

Definition at line 106 of file lidort_fixture.h.

◆ ps_expected_filename

std::string FullPhysics::LidortRtCommonFixture::ps_expected_filename
inherited

Definition at line 106 of file lidort_fixture.h.

◆ pure_nadir

bool FullPhysics::LidortRtCommonFixture::pure_nadir
inherited

Definition at line 99 of file lidort_fixture.h.

◆ stokes_coefs

boost::shared_ptr<StokesCoefficient> FullPhysics::LidortRtCommonFixture::stokes_coefs
inherited

Definition at line 104 of file lidort_fixture.h.

◆ sza

blitz::Array<double, 1> FullPhysics::LidortRtCommonFixture::sza
inherited

solar zenith, view zenith, and azimuth angles used in low_rt and high_rt.

Definition at line 98 of file lidort_fixture.h.

◆ wn_arr

blitz::Array<double, 1> FullPhysics::LidortRtCommonFixture::wn_arr
inherited

Wavenumber array used for testing.

Definition at line 102 of file lidort_fixture.h.

◆ zen

blitz::Array<double, 1> FullPhysics::LidortRtCommonFixture::zen
inherited

Definition at line 98 of file lidort_fixture.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:13