1#ifndef HYDROBRICKS_RESULT_WRITER_H
2#define HYDROBRICKS_RESULT_WRITER_H
35 bool WriteNetCDF(
const string& path,
const axd& time,
const vecInt& hydroUnitIds,
36 const vecInt& hydroUnitStructureIds,
const axd& hydroUnitAreas,
const vecStr& subBasinLabels,
37 const vecAxd& subBasinValues,
const vecStr& hydroUnitLabels,
const vecAxxd& hydroUnitValues,
38 const vecStr& hydroUnitFractionLabels = vecStr(),
const vecAxxd& hydroUnitFractions = vecAxxd());
49 bool WriteCSV(
const string& path,
const axd& time,
const vecStr& labels,
const vecAxd& values);
63 bool AppendToNetCDF(
const string& filePath,
int timeStep,
double time,
const axd& subBasinValues,
64 const axxd& hydroUnitValues,
const axxd& hydroUnitFractions = axxd());
79 const axd& hydroUnitAreas,
const vecStr& subBasinLabels,
80 const vecStr& hydroUnitLabels,
const vecStr& hydroUnitFractionLabels = vecStr());
99 bool CreateNetCDFStructure(
const string& filePath,
int timeSize,
int numHydroUnits,
int numSubBasinItems,
100 int numHydroUnitItems,
int numFractions,
const vecInt& hydroUnitIds,
101 const axd& hydroUnitAreas,
const vecStr& subBasinLabels,
const vecStr& hydroUnitLabels,
102 const vecStr& hydroUnitFractionLabels);
Handles writing simulation results to various output formats.
Definition ResultWriter.h:14
bool CreateNetCDFStructure(const string &filePath, int timeSize, int numHydroUnits, int numSubBasinItems, int numHydroUnitItems, int numFractions, const vecInt &hydroUnitIds, const axd &hydroUnitAreas, const vecStr &subBasinLabels, const vecStr &hydroUnitLabels, const vecStr &hydroUnitFractionLabels)
Definition ResultWriter.cpp:152
bool WriteNetCDF(const string &path, const axd &time, const vecInt &hydroUnitIds, const vecInt &hydroUnitStructureIds, const axd &hydroUnitAreas, const vecStr &subBasinLabels, const vecAxd &subBasinValues, const vecStr &hydroUnitLabels, const vecAxxd &hydroUnitValues, const vecStr &hydroUnitFractionLabels=vecStr(), const vecAxxd &hydroUnitFractions=vecAxxd())
Definition ResultWriter.cpp:8
string InitializeStreamingNetCDF(const string &path, int timeSize, const vecInt &hydroUnitIds, const axd &hydroUnitAreas, const vecStr &subBasinLabels, const vecStr &hydroUnitLabels, const vecStr &hydroUnitFractionLabels=vecStr())
Definition ResultWriter.cpp:144
bool WriteCSV(const string &path, const axd &time, const vecStr &labels, const vecAxd &values)
Definition ResultWriter.cpp:92
bool AppendToNetCDF(const string &filePath, int timeStep, double time, const axd &subBasinValues, const axxd &hydroUnitValues, const axxd &hydroUnitFractions=axxd())
Definition ResultWriter.cpp:137