UFO
|
Locations class to handle simple lat-lon-time locations. More...
#include <Locations.h>
Public Member Functions | |
Locations (const std::vector< float > &lons, const std::vector< float > &lats, const std::vector< util::DateTime > ×, std::shared_ptr< const ioda::Distribution >) | |
constructor from passed lons , lats , times More... | |
Locations (const eckit::Configuration &, const eckit::mpi::Comm &) | |
constructor used in oops tests More... | |
Locations & | operator+= (const Locations &) |
append locations with more locations More... | |
std::vector< bool > | isInTimeWindow (const util::DateTime &t1, const util::DateTime &t2) const |
find which observations are in the (t1 , t2 ] time window More... | |
size_t | size () const |
size of locations More... | |
const std::shared_ptr< const ioda::Distribution > & | distribution () const |
accessor to the observations MPI distribution More... | |
const std::vector< float > & | lons () const |
accessor to observation longitudes (on current MPI task) More... | |
const std::vector< float > & | lats () const |
accessor to observation latitudes (on current MPI task) More... | |
const std::vector< util::DateTime > & | times () const |
accessor to DateTimes (on current MPI task) More... | |
Static Public Member Functions | |
static const std::string | classname () |
Private Member Functions | |
void | print (std::ostream &os) const override |
Private Attributes | |
std::shared_ptr< const ioda::Distribution > | dist_ |
std::vector< float > | lons_ |
observations MPI distribution More... | |
std::vector< float > | lats_ |
longitudes on current MPI task More... | |
std::vector< util::DateTime > | times_ |
latitudes on current MPI task More... | |
Locations class to handle simple lat-lon-time locations.
Definition at line 29 of file src/ufo/Locations.h.
ufo::Locations::Locations | ( | const std::vector< float > & | lons, |
const std::vector< float > & | lats, | ||
const std::vector< util::DateTime > & | times, | ||
std::shared_ptr< const ioda::Distribution > | dist | ||
) |
constructor from passed lons
, lats
, times
Definition at line 26 of file Locations.cc.
ufo::Locations::Locations | ( | const eckit::Configuration & | conf, |
const eckit::mpi::Comm & | comm | ||
) |
constructor used in oops tests
UFO Locations Constructor with Configuration.
This constructor can be used to generate user-specified and/or random locations for use with interpolation or other tests
To generate random locations, the relevant parameters specified in StateTest.Locations section of the config file are:
Definition at line 55 of file Locations.cc.
|
inlinestatic |
Definition at line 32 of file src/ufo/Locations.h.
|
inline |
accessor to the observations MPI distribution
Definition at line 51 of file src/ufo/Locations.h.
std::vector< bool > ufo::Locations::isInTimeWindow | ( | const util::DateTime & | t1, |
const util::DateTime & | t2 | ||
) | const |
find which observations are in the (t1
, t2
] time window
Definition at line 85 of file Locations.cc.
|
inline |
accessor to observation latitudes (on current MPI task)
Definition at line 55 of file src/ufo/Locations.h.
|
inline |
accessor to observation longitudes (on current MPI task)
Definition at line 53 of file src/ufo/Locations.h.
append locations with more locations
Definition at line 77 of file Locations.cc.
|
overrideprivate |
size_t ufo::Locations::size | ( | ) | const |
size of locations
Definition at line 96 of file Locations.cc.
|
inline |
accessor to DateTimes (on current MPI task)
Definition at line 57 of file src/ufo/Locations.h.
|
private |
Definition at line 63 of file src/ufo/Locations.h.
|
private |
longitudes on current MPI task
Definition at line 65 of file src/ufo/Locations.h.
|
private |
observations MPI distribution
Definition at line 64 of file src/ufo/Locations.h.
|
private |
latitudes on current MPI task
Definition at line 66 of file src/ufo/Locations.h.