IODA
|
#include <ObsIo.h>
Public Member Functions | |
ObsIo () | |
virtual | ~ObsIo () |
Dimensions_t | maxVarSize () const |
return number of maximum variable size (along first dimension) More... | |
Dimensions_t | numLocs () const |
return number of locations from the source More... | |
Dimensions_t | numVars () const |
return number of regular variables from the source More... | |
Dimensions_t | numDimVars () const |
return number of dimension scale variables from the source More... | |
const VarNameObjectList & | varList () const |
return list of regular variable names More... | |
const VarNameObjectList & | dimVarList () const |
return list of dimension scale variable names More... | |
VarDimMap | varDimMap () const |
return map of variables to attached dimension scales More... | |
bool | isVarDimByNlocs (const std::string &varName) const |
return true if variable's first dimension is nlocs More... | |
Has_Variables & | vars () |
access to the variables container in the associated ObsGroup More... | |
Has_Attributes & | atts () |
access to the attributes container in the associated ObsGroup More... | |
void | updateVarDimInfo () |
update the variable and dimension information More... | |
const std::vector< std::string > & | obsGroupingVars () const |
return the names of variables to be used to group observations into records More... | |
virtual bool | applyTimingWindow () const |
return true if only observations within the timing window should be retained, false otherwise. More... | |
virtual bool | eachProcessGeneratesSeparateObs () const |
return true if each process generates a separate series of observations (e.g. read from different files). More... | |
Protected Member Functions | |
virtual void | print (std::ostream &os) const =0 |
print() for oops::Printable base class More... | |
Protected Attributes | |
ObsGroup | obs_group_ |
ObsGroup object representing io source/destination. More... | |
Dimensions_t | max_var_size_ |
maximum variable size (ie, first dimension size) More... | |
Dimensions_t | nlocs_ |
number of locations from source (file or generator) More... | |
VarNameObjectList | var_list_ |
list of regular variables from source (file or generator) More... | |
VarNameObjectList | dim_var_list_ |
list of dimension scale variables from source (file or generator) More... | |
VarDimMap | dims_attached_to_vars_ |
map containing variables with their attached dimension scales More... | |
std::vector< std::string > | obs_grouping_vars_ |
names of variables to be used to group observations into records More... | |
The ObsIo class along with its subclasses are responsible for providing an obs data source (for the ObsSpace constructor) and an obs data destination (for the ObsSpace destructor). An obs data source can either be a file (obsdatain.obsfile YAML specification) or a "generator" (obsdatain.generate YAML specification). The generator provides a means for creating obs data through YAML specification, which is useful for testing purposes, thus bypassing the need for a file.
|
inlinevirtual |
return true if only observations within the timing window should be retained, false otherwise.
Reimplemented in ioda::ObsIoGenerateRandom, and ioda::ObsIoGenerateList.
|
inline |
|
inline |
|
inlinevirtual |
return true if each process generates a separate series of observations (e.g. read from different files).
Reimplemented in ioda::ObsIoFileRead.
bool ioda::ObsIo::isVarDimByNlocs | ( | const std::string & | varName | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
print() for oops::Printable base class
ostream | output stream |
Implemented in ioda::ObsIoGenerateRandom, ioda::ObsIoGenerateList, ioda::ObsIoFileRead, and ioda::ObsIoFileCreate.
void ioda::ObsIo::updateVarDimInfo | ( | ) |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |