UFO
|
Retrieve and store data for entire sample. This class uses lazy loading; vectors of variables are retrieved once requested and cached after that. Variables in certain groups are optional, meaning that if they are not present on the obsdb they will be filled with a default value if requested. More...
#include <EntireSampleDataHandler.h>
Public Member Functions | |
EntireSampleDataHandler (ioda::ObsSpace &obsdb, const DataHandlerParameters &options) | |
template<typename T > | |
std::vector< T > & | get (const std::string &fullname) |
void | writeQuantitiesToObsdb () |
Private Member Functions | |
template<typename T > | |
void | putDataVector (const std::string &fullname, const std::vector< T > &datavec) |
Put entire data vector on obsdb. More... | |
int | defaultValue (const std::vector< int > &vec) |
Default value used to fill vector of integers. More... | |
float | defaultValue (const std::vector< float > &vec) |
Default value used to fill vector of floats. More... | |
std::string | defaultValue (const std::vector< std::string > &vec) |
Default value used to fill vector of strings. More... | |
Private Attributes | |
ioda::ObsSpace & | obsdb_ |
Observation database. More... | |
const DataHandlerParameters & | options_ |
Configurable parameters. More... | |
std::unordered_map< std::string, boost::variant< std::vector< int >, std::vector< float >, std::vector< std::string > > > | entireSampleData_ |
Container of each variable in the entire data set. More... | |
Retrieve and store data for entire sample. This class uses lazy loading; vectors of variables are retrieved once requested and cached after that. Variables in certain groups are optional, meaning that if they are not present on the obsdb they will be filled with a default value if requested.
Definition at line 42 of file EntireSampleDataHandler.h.
ufo::EntireSampleDataHandler::EntireSampleDataHandler | ( | ioda::ObsSpace & | obsdb, |
const DataHandlerParameters & | options | ||
) |
Definition at line 14 of file EntireSampleDataHandler.cc.
|
inlineprivate |
Default value used to fill vector of floats.
Definition at line 136 of file EntireSampleDataHandler.h.
|
inlineprivate |
Default value used to fill vector of integers.
Definition at line 133 of file EntireSampleDataHandler.h.
|
inlineprivate |
Default value used to fill vector of strings.
Definition at line 139 of file EntireSampleDataHandler.h.
|
inline |
Retrieve a vector containing the requested variable for the entire data sample.
Definition at line 56 of file EntireSampleDataHandler.h.
|
inlineprivate |
Put entire data vector on obsdb.
Definition at line 114 of file EntireSampleDataHandler.h.
void ufo::EntireSampleDataHandler::writeQuantitiesToObsdb | ( | ) |
Write various quantities to the obsdb so they can be used in future QC checks. The particular variables written out are hardcoded but this could be changed to a configurable list if requred.
Definition at line 20 of file EntireSampleDataHandler.cc.
|
private |
Container of each variable in the entire data set.
Definition at line 143 of file EntireSampleDataHandler.h.
|
private |
Observation database.
Definition at line 127 of file EntireSampleDataHandler.h.
|
private |
Configurable parameters.
Definition at line 130 of file EntireSampleDataHandler.h.