PFSlice.cc
Go to the documentation of this file.
1 
10 #include <atm/PFSlice.h>
11 
12 #include <iostream>
13 
14 using namespace std;
15 using namespace atm;
16 
17 
18 PFSlice::PFSlice(const std::string& headerDBName,
19  const std::string& sliceId,
20  const std::string& aerosolZoneId,
21  const double minH,
22  const double maxH) :
23  VZoneSlice(headerDBName, sliceId, aerosolZoneId, minH, maxH),
24  fF(0),
25  fFError(0),
26  fG(0),
27  fGError(0),
28  fFLambda(0),
29  fFLambdaError(0),
30  fGLambda(0),
31  fGLambdaError(0)
32 {
33 }
34 
35 
36 double
38  const
39 {
40  if (!fF)
41  GetSliceData(fF, "phase_func", "f", "f phase function parameter");
42 
43  return *fF;
44 }
45 
46 
47 double
49  const
50 {
51  if (!fFError)
52  GetSliceData(fFError, "phase_func", "f_error", "error of f phase function parameter");
53 
54  return *fFError;
55 }
56 
57 
58 double
60  const
61 {
62  if (!fG)
63  GetSliceData(fG, "phase_func", "g", "g phase function parameter");
64 
65  return *fG;
66 }
67 
68 
69 double
71  const
72 {
73  if (!fGError)
74  GetSliceData(fGError, "phase_func", "g_error", "g phase function parameter");
75 
76  return *fGError;
77 }
78 
79 
80 double
82  const
83 {
84  if (!fFLambda)
86  "phase_func", "phase_func_lambda_id",
87  "phase_func_lambda", "f_lambda",
88  "lambda dependence of f phase function parameter");
89 
90  return *fFLambda;
91 }
92 
93 
94 double
96  const
97 {
98  if (!fFLambdaError)
100  "phase_func", "phase_func_lambda_id",
101  "phase_func_lambda", "f_lambda_error",
102  "error on lambda dependence of f phase function parameter");
103 
104  return *fFLambdaError;
105 }
106 
107 
108 double
110  const
111 {
112  if (!fGLambda)
114  "phase_func", "phase_func_lambda_id",
115  "phase_func_lambda", "g_lambda",
116  "lambda dependence of g phase function parameter");
117 
118  return *fGLambda;
119 }
120 
121 
122 double
124  const
125 {
126  if (!fGLambdaError)
128  "phase_func", "phase_func_lambda_id",
129  "phase_func_lambda", "g_lambda_error",
130  "error on lambda dependence of g phase function parameter");
131 
132  return *fGLambdaError;
133 }
134 
135 
137 {
138  delete fF;
139  delete fFError;
140  delete fG;
141  delete fGError;
142  delete fFLambda;
143  delete fFLambdaError;
144  delete fGLambda;
145  delete fGLambdaError;
146 }
147 
148 
149 // Configure (x)emacs for this file ...
150 // Local Variables:
151 // mode: c++
152 // compile-command: "make -C .. -k"
153 // End:
void GetSliceData(T *&requestedData, const std::string &property, const std::string &component, const std::string &errorMsg) const
Definition: VZoneSlice.h:65
void GetLambdaSliceData(T *&requestedData, const std::string &zoneTable, const std::string &foreignKey, const std::string &lambdaTable, const std::string &column, const std::string &errorMsg) const
Definition: VZoneSlice.h:107
double * fG
Definition: PFSlice.h:68
double GetF() const
f parameter for this slice
Definition: PFSlice.cc:37
double GetGError() const
error on g parameter for this slice
Definition: PFSlice.cc:70
double * fFError
Definition: PFSlice.h:67
double GetFLambdaError() const
error on wavelength dependence of f parameter for this slice
Definition: PFSlice.cc:95
double GetFLambda() const
wavelength dependence of f parameter for this slice
Definition: PFSlice.cc:81
double * fGLambdaError
Definition: PFSlice.h:73
double GetFError() const
error on f parameter for this slice
Definition: PFSlice.cc:48
virtual ~PFSlice()
Definition: PFSlice.cc:136
double GetG() const
g parameter for this slice
Definition: PFSlice.cc:59
double * fGError
Definition: PFSlice.h:69
double GetGLambda() const
wavelength dependence of g parameter for this slice
Definition: PFSlice.cc:109
double * fFLambda
Definition: PFSlice.h:70
double * fF
Definition: PFSlice.h:66
Base class for AttSlice and PFSlice.
Definition: VZoneSlice.h:28
double GetGLambdaError() const
error on wavelength dependence of g parameter for this slice
Definition: PFSlice.cc:123
double * fFLambdaError
Definition: PFSlice.h:71
double * fGLambda
Definition: PFSlice.h:72

, generated on Tue Sep 26 2023.