12 #include "ioda/ObsSpace.h"
18 static PredictorMaker<SineOfLatitude>
32 ioda::ObsVector & out)
const {
33 const std::size_t
nlocs = out.nlocs();
34 const std::size_t nvars = out.nvars();
37 std::vector<float> cenlat(
nlocs, 0.0);
38 odb.get_db(
"MetaData",
"latitude", cenlat);
40 for (std::size_t jloc = 0; jloc <
nlocs; ++jloc) {
41 for (std::size_t jvar = 0; jvar < nvars; ++jvar) {
GeoVaLs: geophysical values at locations.
SineOfLatitude(const Parameters_ &, const oops::Variables &)
void compute(const ioda::ObsSpace &, const GeoVaLs &, const ObsDiagnostics &, ioda::ObsVector &) const override
compute the predictor
integer function nlocs(this)
Return the number of observational locations in this Locations object.
static PredictorMaker< SineOfLatitude > makerFuncSineOfLatitude_("sine_of_latitude")
static constexpr double deg2rad