UFO
|
Outputs a linear combination of variables. More...
#include <ObsFunctionLinearCombination.h>
Public Member Functions | |
LinearCombination (const eckit::LocalConfiguration &) | |
~LinearCombination () | |
void | compute (const ObsFilterData &, ioda::ObsDataVector< float > &) const |
compute the result of the function More... | |
const ufo::Variables & | requiredVariables () const |
geovals required to compute the function More... | |
![]() | |
ObsFunctionBase (const eckit::LocalConfiguration conf=eckit::LocalConfiguration()) | |
virtual | ~ObsFunctionBase () |
Private Attributes | |
LinearCombinationParameters | options_ |
ufo::Variables | invars_ |
Additional Inherited Members | |
![]() | |
typedef float | Value_ |
Type of the values produced by the function. More... | |
Outputs a linear combination of variables.
Example 1
obs function: name: LinearCombination@ObsFunction options: variables: [representation_error@GeoVaLs, sea_water_temperature@ObsError] coefs: [0.1, 1.0]
will return 0.1 * representation_error@GeoVaLs + 1.0 * sea_water_temperature@ObsError
Example 2 - multi-channel
obs function: name: LinearCombination@ObsFunction channels: &select_chans 6-15, 18-22 # this line may be needed depending on the filter used options: variables:
will return 1.0 * brightness_temperature_<channel>@ObsValue + 0.5 * brightness_temperature_<channel>@ObsError
Definition at line 71 of file ObsFunctionLinearCombination.h.
|
explicit |
Definition at line 25 of file ObsFunctionLinearCombination.cc.
ufo::LinearCombination::~LinearCombination | ( | ) |
Definition at line 38 of file ObsFunctionLinearCombination.cc.
|
virtual |
compute the result of the function
Implements ufo::ObsFunctionBase< float >.
Definition at line 42 of file ObsFunctionLinearCombination.cc.
|
virtual |
geovals required to compute the function
Implements ufo::ObsFunctionBase< float >.
Definition at line 77 of file ObsFunctionLinearCombination.cc.
|
private |
Definition at line 81 of file ObsFunctionLinearCombination.h.
|
private |
Definition at line 80 of file ObsFunctionLinearCombination.h.