10 #include "ioda/io/ObsIoFileRead.h"
24 std::string fileName = ioParams.
fileName;
25 oops::Log::trace() <<
"Constructing ObsIoFileRead: Opening file for read: "
26 << fileName << std::endl;
67 os <<
"ObsIoFileRead: " << std::endl;
Definitions for setting up backends with file and memory I/O.
Groups are a new implementation of ObsSpaces.
oops::Parameter< bool > readFromSeparateFiles
oops::RequiredParameter< std::string > fileName
input obs file name
An ObsGroup is a specialization of a ioda::Group. It provides convenience functions and guarantees th...
ObsIoFileRead(const Parameters_ &ioParams, const ObsSpaceParameters &obsSpaceParams)
bool eachProcessGeneratesSeparateObs() const override
return true if each process generates a separate series of observations (e.g. read from different fil...
bool read_separate_files_
void print(std::ostream &os) const override
print routine for oops::Printable base class
Dimensions_t max_var_size_
maximum variable size (ie, first dimension size)
Dimensions_t nlocs_
number of locations from source (file or generator)
VarNameObjectList var_list_
list of regular variables from source (file or generator)
std::vector< std::string > obs_grouping_vars_
names of variables to be used to group observations into records
VarNameObjectList dim_var_list_
list of dimension scale variables from source (file or generator)
VarDimMap dims_attached_to_vars_
map containing variables with their attached dimension scales
ObsGroup obs_group_
ObsGroup object representing io source/destination.
oops::Parameter< ObsGroupingParameters > obsGrouping
options controlling obs record grouping
int getMpiTimeRank() const
get the MPI rank number
std::size_t getMpiRank() const
get the MPI rank number
Has_Variables vars
Use this to access variables.
virtual Variable open(const std::string &name) const
Open a Variable by name.
virtual Dimensions getDimensions() const
BackendNames
Backend names.
IODA_DL Group constructBackend(BackendNames name, BackendCreationParameters ¶ms)
This is a simple factory style function that will instantiate a different backend based on a given na...
@ Open
Open an existing file.
@ Hdf5File
HDF5 file access.
@ Read_Only
Open the file in read-only mode.
static DistributionMaker< Halo > maker("Halo")
std::string uniquifyFileName(const std::string &fileName, const std::size_t rankNum, const int timeRankNum)
uniquify the output file name
void collectVarDimInfo(const ObsGroup &obsGroup, VarNameObjectList &varObjectList, VarNameObjectList &dimVarObjectList, VarDimMap &dimsAttachedToVars, Dimensions_t &maxVarSize0)
collect variable and dimension information from a ioda ObsGroup
std::vector< Dimensions_t > dimsCur
The dimensions of the data.
Used to specify backend creation-time properties.
BackendFileActions action
BackendOpenModes openMode