ReFRACtor
stokes_coefficient_constant.h
Go to the documentation of this file.
1 #ifndef STOKES_COEFFICIENT_CONSTANT_H
2 #define STOKES_COEFFICIENT_CONSTANT_H
3 #include "stokes_coefficient.h"
4 
5 namespace FullPhysics {
6 /****************************************************************/
12 public:
13  StokesCoefficientConstant(const blitz::Array<double, 2>& Stokes_coeff);
15  virtual void print(std::ostream& Os) const;
18  // Update the stokes coefficients.
19  void set_stokes_coefficient(const blitz::Array<double, 2> Stokes_coeff)
20  {
21  if(Stokes_coeff.rows() != stokes_coeff.rows() ||
22  Stokes_coeff.cols() != stokes_coeff.cols())
23  throw Exception("Stokes_coeff is not the expected size");
24  stokes_coeff = Stokes_coeff;
25  }
26 protected:
28 };
29 }
30 #endif
31 
int cols() const
Definition: array_ad.h:369
This class maintains the stokes coefficient portion of the state.
This class maintains the stokes coefficient portion of the state.
This is the base of the exception hierarchy for Full Physics code.
Definition: fp_exception.h:16
virtual ArrayAd< double, 2 > stokes_coefficient() const
Return Stokes coefficients used to go from Stokes vector to scalar reflectance.
virtual boost::shared_ptr< StokesCoefficient > clone() const
Clone a StokesCoefficient object.
StokesCoefficientConstant(const blitz::Array< double, 2 > &Stokes_coeff)
Constructor.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
void set_stokes_coefficient(const blitz::Array< double, 2 > Stokes_coeff)
virtual void print(std::ostream &Os) const
int rows() const
Definition: array_ad.h:368

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