UFO
ObsFunction.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019 UCAR
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  */
7 
9 
10 #include "ioda/ObsDataVector.h"
11 #include "ufo/filters/Variables.h"
12 
13 namespace ufo {
14 
15 // -----------------------------------------------------------------------------
16 
18  : obsfct_(ObsFunctionFactory::create(var))
19 {}
20 
21 // -----------------------------------------------------------------------------
22 
24 
25 // -----------------------------------------------------------------------------
26 
28  ioda::ObsDataVector<float> & out) const {
29  obsfct_->compute(in, out);
30 }
31 
32 // -----------------------------------------------------------------------------
33 
35  return obsfct_->requiredVariables();
36 }
37 
38 // -----------------------------------------------------------------------------
39 
40 } // namespace ufo
ufo::Variables
Definition: src/ufo/filters/Variables.h:24
ufo::ObsFunction::obsfct_
std::unique_ptr< ObsFunctionBase > obsfct_
Definition: src/ufo/filters/obsfunctions/ObsFunction.h:38
ufo::ObsFunction::~ObsFunction
~ObsFunction()
Definition: ObsFunction.cc:23
ufo::ObsFunction::requiredVariables
const ufo::Variables & requiredVariables() const
required variables
Definition: ObsFunction.cc:34
ufo
Definition: RunCRTM.h:27
ufo::ObsFunction::compute
void compute(const ObsFilterData &, ioda::ObsDataVector< float > &) const
compute(metadata, obs values, output)
Definition: ObsFunction.cc:27
Variables.h
ufo::ObsFunction::ObsFunction
ObsFunction(const Variable &)
constructor takes function name (for factory) on input
Definition: ObsFunction.cc:17
ObsFunction.h
ioda::ObsDataVector
Definition: BackgroundCheck.h:26
ufo::ObsFunctionFactory
Obs Function Factory.
Definition: ObsFunctionBase.h:42
ufo::Variable
Definition: Variable.h:23
ufo::ObsFilterData
ObsFilterData provides access to all data related to an ObsFilter.
Definition: src/ufo/filters/ObsFilterData.h:40