13 #include "ioda/ObsDataVector.h"
14 #include "oops/util/missingValues.h"
24 : invars_(), group_() {
25 group_ = conf.getString(
"type",
"ObsValue");
41 std::vector<float> u, v;
44 for (
size_t jj = 0; jj <
nlocs; ++jj) {
46 out[0][jj] = sqrt(u[jj]*u[jj] + v[jj]*v[jj]);
ObsFilterData provides access to all data related to an ObsFilter.
size_t nlocs() const
Returns the number of locations in the associated ObsSpace.
void get(const Variable &varname, std::vector< float > &values) const
Fills a std::vector with values of the specified variable.
void compute(const ObsFilterData &, ioda::ObsDataVector< float > &) const
compute the result of the function
const ufo::Variables & requiredVariables() const
geovals required to compute the function
ObsFunctionVelocity(const eckit::LocalConfiguration)
integer function nlocs(this)
Return the number of observational locations in this Locations object.
static ObsFunctionMaker< ObsFunctionVelocity > makerObsFuncVelocity_("Velocity")