ReFRACtor
rayleigh_greek_moment.cc
Go to the documentation of this file.
2 using namespace FullPhysics;
3 using namespace blitz;
4 
5 //-----------------------------------------------------------------------
8 //-----------------------------------------------------------------------
9 
10 const blitz::Array<double, 2>& RayleighGreekMoment::array(double depolar_fact)
11 {
12  static bool first_time = true;
13  static Array<double, 2> res;
14 
15  if(first_time) {
16  res.reference(Array<double, 2>(shape(3,6), ColumnMajorArray<2>()));
17  res = 0;
18  res(0,0) = 1;
19  res(1,0) = 1e-11; // this is to ensure LIDORT doesn't freak out
20  res(1,3) = 3*(1-2*depolar_fact)/(2+depolar_fact);
21  res(2,0) = (1-depolar_fact)/(2+depolar_fact);
22  res(2,4) = sqrt(6)*(1-depolar_fact)/(2+depolar_fact);
23  res(2,1) = 6*(1-depolar_fact)/(2+depolar_fact);
24  first_time = false;
25  }
26  return res;
27 }
Apply value function to a blitz array.
static const blitz::Array< double, 2 > & array(double depolar_fact=0.02790)
Return the Ralyeigh Greek Moment Array.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1

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