13 #include "eckit/exception/Exceptions.h"
23 const std::size_t &
nlocs,
double * lons) {
25 const std::vector<float> & data = locs.
lons();
26 std::copy(data.begin(), data.end(), lons);
30 const std::size_t &
nlocs,
double * lats) {
32 const std::vector<float> & data = locs.
lats();
33 std::copy(data.begin(), data.end(), lats);
37 const util::DateTime & t1,
const util::DateTime & t2,
38 const std::size_t &
nlocs,
bool * mask) {
41 std::copy(data.begin(), data.end(), mask);
Locations class to handle simple lat-lon-time locations.
size_t size() const
size of locations
std::vector< bool > isInTimeWindow(const util::DateTime &t1, const util::DateTime &t2) const
find which observations are in the (t1, t2] time window
const std::vector< float > & lons() const
accessor to observation longitudes (on current MPI task)
const std::vector< float > & lats() const
accessor to observation latitudes (on current MPI task)
integer function nlocs(this)
Return the number of observational locations in this Locations object.
void locations_get_lats_f(const Locations &locs, const std::size_t &nlocs, double *lats)
void locations_get_timemask_f(const Locations &locs, const util::DateTime &t1, const util::DateTime &t2, const std::size_t &nlocs, bool *mask)
void locations_get_lons_f(const Locations &locs, const std::size_t &nlocs, double *lons)
std::size_t locations_get_nlocs_f(const Locations &locs)