IODA
IodaUtils.cc File Reference
#include <fstream>
#include <iomanip>
#include "ioda/core/IodaUtils.h"
#include "ioda/ObsSpaceParameters.h"
#include "oops/util/DateTime.h"
Include dependency graph for IodaUtils.cc:

Go to the source code of this file.

Namespaces

 ioda
 

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::string ioda::TypeIdName (const std::type_info &TypeId)
 
std::size_t ioda::FindMaxStringLength (const std::vector< std::string > &StringVector)
 
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::convertDtStringsToDtime (const std::vector< std::string > &dtStrings)
 convert datetime strings to DateTime object More...
 
std::vector< util::DateTime > ioda::convertRefOffsetToDtime (const int refIntDtime, const std::vector< float > &timeOffsets)
 convert reference, time 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...
 
std::string ioda::convertNewVnameToOldVname (const std::string &varName)
 convert the new format varible name to the old format More...