56 int Open(
const std::vector<string> &files,
const std::vector<string> &options,
string name,
string format);
168 size_t getMaxTimestep() {
return _timeCoords.size() ? _timeCoords.size() - 1 : 0; }
174 std::vector<string> varnames;
179 void _getExtents(
size_t ts,
const map<
string, std::vector<var_info_t>> &variables, CoordType &minExt, CoordType &maxExt)
const;
181 map<string, vector<var_info_t>> _getFirstVar(
string dataSetName,
size_t &ts)
const;
184 void reset_time_helper();
186#ifndef DOXYGEN_SKIP_THIS
190 map<string, DataMgr *> _dataMgrs;
191 map<string, vector<size_t>> _timeMap;
192 vector<double> _timeCoords;
193 vector<string> _timeCoordsFormatted;
A cache based data reader.
A class for describing the currently loaded dataset.
void SetNumThreads(size_t nthreads)
DataStatus(size_t cacheSize, int nThreads=0)
void GetActiveExtents(const ParamsMgr *paramsMgr, string winName, string datasetName, size_t ts, CoordType &minExts, CoordType &maxExts) const
void SetCacheSize(size_t sizeMB)
void MapLocalToGlobalTimeRange(string dataSetName, size_t local_ts, size_t &min_ts, size_t &max_ts) const
const vector< double > & GetTimeCoordinates() const
string GetMapProjectionDefault(string dataSetName) const
const vector< string > & GetTimeCoordsFormatted() const
DataMgr * GetDataMgr(string name) const
size_t GetNumThreads() const
void GetActiveExtents(const ParamsMgr *paramsMgr, string winName, size_t ts, CoordType &minExts, CoordType &maxExts) const
int Open(const std::vector< string > &files, const std::vector< string > &options, string name, string format)
string GetMapProjection() const
vector< string > GetDataMgrNames() const
void GetActiveExtents(const ParamsMgr *paramsMgr, size_t ts, CoordType &minExts, CoordType &maxExts) const
size_t MapGlobalToLocalTimeStep(string dataSetName, size_t ts) const
A singleton class for managing Params instances.
std::array< double, 3 > CoordType
Type for specifying floating point coordinates.