29 if (dimCompMap.size() == 0)
60 const std::string& filePath)
override
62 return readForcingTimeStatic(forcings, time, filePath);
81 static void close(
const std::string& filePath);
84 const std::set<std::string>& forcings,
const TimePoint& time,
const std::string& filePath);
91 static const std::map<std::string, ModelArray::Type> dimensionKeys;
93 static const std::map<ModelArray::Dimension, bool> isDG;
94 static std::map<ModelArray::Dimension, ModelArray::Type> dimCompMap;
97 static void makeDimCompMap();
100 static void closeAllFiles();
104 static std::map<std::string, netCDF::NcFile> openFiles;
105 static std::map<std::string, size_t> timeIndexByFile;
void writeDiagnosticTime(const ModelState &state, const ModelMetadata &meta, const std::string &filePath) override
Writes diagnostic data to a file.
void dumpModelState(const ModelState &state, const ModelMetadata &meta, const std::string &filePath) override
Writes the ModelState to a given file location from the provided model data and metadata.
ModelState readForcingTime(const std::set< std::string > &forcings, const TimePoint &time, const std::string &filePath) override
Reads forcings from a ParameticGrid flavoured file.
ModelState getModelState(const std::string &filePath) override
static void close(const std::string &filePath)
A class to hold the grid data for parameterised rectangular grids.