14 fortranFileId_(fortranFileId),
15 accumulator_(
BufrAccumulator(mnemonicSet.getSize() * mnemonicSet.getMaxColumn())),
16 mnemonicSet_(mnemonicSet)
30 dataMap.insert({fieldName, dataArr});
Accumulates provided data into a dynamically expanding Eigen Array.
IngesterArray getData(Eigen::Index elementPos, Eigen::Index numElementsPerSet, const Channels &indices={1})
Get an Eigen Array that contains a slice of the collected data.
BufrCollector(const int fortranFileId, const BufrMnemonicSet mnemonicSet)
BufrDataMap finalize()
Get the data we want from the accumulator and make our data map. Resets the accumulator.
BufrAccumulator accumulator_
Accumulator to collect the data we are collecting.
const BufrMnemonicSet mnemonicSet_
Specifies the mnemonics and channels this collector gets from the BUFR file.
Defenition of BUFR mnemonics and associated channels of interest.
std::vector< std::string > getMnemonics() const
Channels getChannels() const
Eigen::Array< FloatType, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > IngesterArray
IngesterArrayMap BufrDataMap
std::map< std::string, IngesterArray > IngesterArrayMap