8 #ifndef UFO_FILTERS_OBSFUNCTIONS_OBSERRORMODELRAMP_H_
9 #define UFO_FILTERS_OBSFUNCTIONS_OBSERRORMODELRAMP_H_
14 #include "ioda/ObsDataVector.h"
15 #include "oops/util/parameters/OptionalParameter.h"
16 #include "oops/util/parameters/Parameter.h"
17 #include "oops/util/parameters/Parameters.h"
18 #include "oops/util/parameters/RequiredParameter.h"
36 oops::RequiredParameter<Variable>
xvar{
"xvar",
this};
41 oops::OptionalParameter<std::string>
chlist{
"channels",
this};
43 oops::RequiredParameter<std::vector<float>>
x0{
"x0",
this};
45 oops::RequiredParameter<std::vector<float>>
x1{
"x1",
this};
47 oops::OptionalParameter<std::vector<float>>
x2{
"x2",
this};
49 oops::RequiredParameter<std::vector<float>>
err0{
"err0",
this};
51 oops::RequiredParameter<std::vector<float>>
err1{
"err1",
this};
53 oops::OptionalParameter<std::vector<float>>
err2{
"err2",
this};
55 oops::Parameter<bool>
save{
"save",
false,
this};
178 class ObsErrorModelRamp :
public ObsFunctionBase<float> {
180 static const std::string classname() {
return "ObsErrorModelRamp";}
182 explicit ObsErrorModelRamp(
const eckit::LocalConfiguration);
183 ~ObsErrorModelRamp();
185 void compute(
const ObsFilterData &,
190 ObsErrorModelRampParameters options_;
Options controlling the ObsErrorModelRamp ObsFunction.
oops::RequiredParameter< std::vector< float > > err1
y-coordinate of the upper ramp inflection point
oops::OptionalParameter< std::vector< float > > x2
(optinal) an extra upper ramp.
oops::RequiredParameter< std::vector< float > > x1
x-coordinate of the upper ramp inflection point
oops::RequiredParameter< std::vector< float > > err0
y-coordinate of the lower ramp inflection point
oops::RequiredParameter< Variable > xvar
x variable of the piece-wise function
oops::Parameter< bool > save
whether to save xvar values to the ObsSpace
oops::OptionalParameter< std::string > chlist
oops::OptionalParameter< std::vector< float > > err2
(optional) an extra error value.
oops::RequiredParameter< std::vector< float > > x0
x-coordinate of the lower ramp inflection point