10 #include "eckit/exception/Exceptions.h"
12 #include "oops/util/missingValues.h"
81 ASSERT(out.nvars() == 1);
83 std::vector<int> iidx(
nlocs);
86 std::vector<float> latitude;
87 std::vector<float> longitude;
103 for (
size_t jj = 0; jj <
nlocs; ++jj) {
105 dx, dy, latitude[jj], longitude[jj], iidx[jj]);
106 out[0][jj] =
static_cast<float>(iidx[jj]);
112 for (
size_t jj = 0; jj <
nlocs; ++jj) {
115 latitude[jj], longitude[jj], iidx[jj]);
116 out[0][jj] =
static_cast<float>(iidx[jj]);
120 std::string errString =
" is not a supported map projection. Fatal error!!!";
122 throw eckit::BadValue(errString);
126 out.save(
"DerivedValue");
void compute(const ObsFilterData &, ioda::ObsDataVector< float > &) const
LAMDomainCheck::compute.
const ufo::Variables & requiredVariables() const
geovals required to compute the function
LAMDomainCheck(const eckit::LocalConfiguration &=eckit::LocalConfiguration())
LAMDomainCheckParameters options_
oops::Parameter< float > cenlon
oops::Parameter< bool > save
oops::Parameter< float > esg_k
oops::RequiredParameter< std::string > mapproj
oops::Parameter< float > esg_a
oops::Parameter< int > esg_npy
oops::Parameter< float > esg_dx
oops::Parameter< float > esg_plat
oops::Parameter< float > esg_dy
oops::Parameter< int > esg_npx
oops::Parameter< float > radius
oops::Parameter< float > cenlat
oops::Parameter< float > esg_pazi
oops::Parameter< float > esg_plon
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.
integer function nlocs(this)
Return the number of observational locations in this Locations object.
void lam_domaincheck_circle_f90(const float &, const float &, const float &, const float &, const float &, int &)
void lam_domaincheck_esg_f90(const float &, const float &, const float &, const float &, const float &, const int &, const int &, const float &, const float &, const float &, const float &, int &)
static ObsFunctionMaker< LAMDomainCheck > makerObsFuncLAMDomainCheck_("LAMDomainCheck")