|
| DataStatus (size_t cacheSize, int nThreads=0) |
|
| DataStatus () |
|
virtual | ~DataStatus () |
|
int | Open (const std::vector< string > &files, const std::vector< string > &options, string name, string format) |
|
void | Close (string name) |
|
DataMgr * | GetDataMgr (string name) const |
|
vector< string > | GetDataMgrNames () const |
|
void | GetActiveExtents (const ParamsMgr *paramsMgr, string winName, string datasetName, size_t ts, CoordType &minExts, CoordType &maxExts) const |
|
void | GetActiveExtents (const ParamsMgr *paramsMgr, string winName, size_t ts, CoordType &minExts, CoordType &maxExts) const |
|
void | GetActiveExtents (const ParamsMgr *paramsMgr, size_t ts, CoordType &minExts, CoordType &maxExts) const |
|
const vector< double > & | GetTimeCoordinates () const |
|
const vector< string > & | GetTimeCoordsFormatted () const |
|
size_t | MapGlobalToLocalTimeStep (string dataSetName, size_t ts) const |
|
void | MapLocalToGlobalTimeRange (string dataSetName, size_t local_ts, size_t &min_ts, size_t &max_ts) const |
|
void | SetNumThreads (size_t nthreads) |
|
size_t | GetNumThreads () const |
|
void | SetCacheSize (size_t sizeMB) |
|
string | GetMapProjection () const |
|
string | GetMapProjectionDefault (string dataSetName) const |
|
size_t | getMinTimestep () |
|
size_t | getMaxTimestep () |
|
A class for describing the currently loaded dataset.
- Author
- Alan Norton
- Version
- 3.0
- Date
- January 2016
The DataStatus class keeps track of available variables, timesteps, resolutions, and data ranges. It is constructed by the Session whenever a new metadata is loaded. It keeps a lazily evaluated value of min/max of each variable for each timestep. Variables can be referenced using the variable name, the session variable num (a numbering all the variables in the session) or by the active variable num. Active variables are all those in the metadata plus all the derived variables, and are a subset of the session variables. Session variables are those that were specified in the session plus those that are derived, and these may not all be available in the metadata. To support using active variables and session variable nums, mappings are provided between active names/nums and session nums, and also between variable names and their 2D and 3D session variable numbers and active variable numbers.
Definition at line 50 of file DataStatus.h.
void VAPoR::DataStatus::GetActiveExtents |
( |
const ParamsMgr * |
paramsMgr, |
|
|
string |
winName, |
|
|
string |
datasetName, |
|
|
size_t |
ts, |
|
|
CoordType & |
minExts, |
|
|
CoordType & |
maxExts |
|
) |
| const |
Get domain extents for all active variables
This method returns the union of the domain extents for all active variables on the window named by winName
. A variable is considered active if it it currrently in use by an enabled RenderParams instance.
The domain extents returned are always 3D. I.e. minExts
and maxExts
will always have three elements.
If no variable is active all elements of minExts
will be zero, and all elements of maxExts will be one.
- Parameters
-
[in] | datasetName | If provided, will only return extents for that dataset. |
[in] | paramsMgr | Active variables are determined by querying the ParamsMgr. |
[out] | minExts | |
- See also
- ParamsMgr::GetRenderParams()
const vector< string > & VAPoR::DataStatus::GetTimeCoordsFormatted |
( |
| ) |
const |
|
inline |
Returns a vector of formatted time coordinate strings
This method interprets the values returned by GetTimeCoordinates() as seconds since the EPOCH and uses UDUNITS2 to encode the values the values as year, month, day, hour, minute, second, which are then formatted as a date-time string.
Definition at line 111 of file DataStatus.h.