IODA
IodaUtils.h File Reference
#include <map>
#include <string>
#include <typeinfo>
#include <utility>
#include <vector>
#include "eckit/config/LocalConfiguration.h"
#include "ioda/Misc/Dimensions.h"
#include "ioda/ObsGroup.h"
#include "ioda/Variables/Variable.h"
#include "oops/util/abor1_cpp.h"
#include "oops/util/DateTime.h"
#include "oops/util/Duration.h"
#include "oops/util/missingValues.h"
Include dependency graph for IodaUtils.h:

Go to the source code of this file.

Namespaces

 ioda
 

Typedefs

typedef std::vector< std::pair< std::string, Variable > > ioda::VarNameObjectList
 typedef for holding list of variable names with associated variable object More...
 
typedef std::map< std::string, std::vector< std::string > > ioda::VarDimMap
 typedef for holding dim names attached to variables More...
 

Functions

std::vector< std::size_t > ioda::CharShapeFromStringVector (const std::vector< std::string > &StringVector)
 
std::vector< std::string > ioda::CharArrayToStringVector (const char *CharData, const std::vector< std::size_t > &CharShape)
 
void ioda::StringVectorToCharArray (const std::vector< std::string > &StringVector, const std::vector< std::size_t > &CharShape, char *CharData)
 
std::size_t ioda::FindMaxStringLength (const std::vector< std::string > &StringVector)
 
std::string ioda::TypeIdName (const std::type_info &TypeId)
 
std::string ioda::fullVarName (const std::string &groupName, const std::string &varName)
 form full variable name given individual group and variable names More...
 
void ioda::collectVarDimInfo (const ObsGroup &obsGroup, VarNameObjectList &varObjectList, VarNameObjectList &dimVarObjectList, VarDimMap &dimsAttachedToVars, Dimensions_t &maxVarSize0)
 collect variable and dimension information from a ioda ObsGroup More...
 
std::type_index ioda::varDtype (const Group &group, const std::string &varName)
 get variable data type More...
 
bool ioda::varIsDimScale (const Group &group, const std::string &varName)
 true if variable is a dimension scale More...
 
std::vector< util::DateTime > ioda::convertRefOffsetToDtime (const int refIntDtime, const std::vector< float > &timeOffsets)
 convert reference, time to DateTime object More...
 
std::vector< util::DateTime > ioda::convertDtStringsToDtime (const std::vector< std::string > &dtStrings)
 convert datetime strings to DateTime object More...
 
std::vector< std::string > ioda::StringArrayToStringVector (const std::vector< std::string > &arrayData, const std::vector< Dimensions_t > &arrayShape)
 convert 2D string array to a vector of strings More...
 
void ioda::setOfileParamsFromTestConfig (const eckit::LocalConfiguration &obsConfig, ioda::ObsSpaceParameters &obsParams)
 set params for output file construction from test YAML configuration More...
 
std::string ioda::uniquifyFileName (const std::string &fileName, const std::size_t rankNum, const int timeRankNum)
 uniquify the output file name More...
 
VarDimMap ioda::genDimsAttachedToVars (const Has_Variables &varContainer, const std::vector< std::string > &varList, const std::vector< std::string > &dimVarList)
 form a map containing lists of dimension variables that are attached to each variable More...
 
std::string ioda::convertNewVnameToOldVname (const std::string &varName)
 convert the new format varible name to the old format More...
 
template<typename FromType , typename ToType >
void ioda::ConvertVarType (const std::vector< FromType > &FromVar, std::vector< ToType > &ToVar)