ReFRACtor
connor_solver_output.cc
Go to the documentation of this file.
1 #include "connor_solver_output.h"
2 
3 using namespace FullPhysics;
4 using namespace blitz;
5 
6 #ifdef HAVE_LUA
7 #include "register_lua.h"
9 .def(luabind::constructor<const boost::shared_ptr<ConnorSolver>& >())
10 .def(luabind::constructor<const boost::shared_ptr<ConnorSolver>&, bool>())
12 #endif
13 
15 {
16  out->register_data_source("/RetrievalResults/aposteriori_covariance_matrix",
18  solver);
19  out->register_data_source("/RetrievalResults/apriori_covariance_matrix",
21  solver);
22  out->register_data_source("/RetrievalResults/averaging_kernel_matrix",
24  solver);
25  out->register_data_source("/RetrievalResults/diverging_steps",
27  solver);
28  out->register_data_source("/RetrievalResults/iterations",
30  solver);
31  out->register_data_source("/RetrievalResults/outcome_flag",
33  solver);
34  out->register_data_source("/RetrievalResults/num_state_vector_elements",
36  solver);
37 
38 
39  out->register_data_source("/RetrievedStateVector/state_vector_apriori",
41  solver);
42  out->register_data_source("/RetrievedStateVector/state_vector_apriori_uncert",
44  solver);
45  out->register_data_source("/RetrievedStateVector/state_vector_result",
47  solver);
48  out->register_data_source("/RetrievedStateVector/state_vector_aposteriori_uncert",
50  solver);
51 
52  if(write_jacobian)
53  out->register_data_source("/RetrievalResults/jacobian",
54  &ConnorSolver::jacobian, solver);
55 }
This registers the portions of the ConnorSolver class that should be written as output.
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
blitz::Array< double, 1 > x_solution_zero_unused() const
Return the solution to the last problem solved.
int number_iteration() const
Number of iterations for the last problem solved.
Apply value function to a blitz array.
virtual blitz::Array< double, 2 > aposteriori_covariance() const
Return a posteriori covariance matrix for last problem solved.
blitz::Array< double, 2 > apriori_covariance() const
Apriori covariance matrix.
blitz::Array< double, 1 > x_solution_uncertainty() const
Return the uncertainty of x_solution, this is just the sqrt of the diagonal of the full aposteriori_c...
As described in the Output class, we have a decentralized model of producing output for L2 Full Physi...
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
virtual void register_output(const boost::shared_ptr< Output > &out) const
Register portions of class that will be written to output.
#define REGISTER_LUA_END()
Definition: register_lua.h:134
virtual blitz::Array< double, 2 > averaging_kernel() const
Return averaging kernel for last problem solved.
blitz::Array< double, 1 > x_apriori() const
Return the a priori of the last problem solved.
int number_divergent() const
Number of divergent steps for the last problem solved.
virtual blitz::Array< double, 2 > jacobian() const
Return the last jacobian calculated.
blitz::Array< double, 1 > x_apriori_uncertainty() const
Return the uncertainty of the apriori of the last problem solved.
int outcome_flag() const
Outcome flag. This is an integer version of FitStatistic::OUTCOME.

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