|
| DataMgrMPAS (const vector< string > &files, size_t mem_size) |
|
virtual | ~DataMgrMPAS () |
|
| DataMgr (size_t mem_size) |
|
virtual | ~DataMgr () |
|
virtual void | GetDim (size_t dim[3], int reflevel=0) const |
|
int | GetNumTransforms () const |
|
virtual vector< size_t > | GetCRatios () const |
|
virtual string | GetCoordSystemType () const |
|
virtual string | GetGridType () const |
|
virtual vector< double > | GetExtents (size_t ts=0) |
|
virtual long | GetNumTimeSteps () const |
|
virtual string | GetMapProjection () const |
|
virtual vector< string > | GetVariableNames () const |
|
virtual vector< string > | GetVariables3D () const |
|
virtual vector< string > | GetVariables2DXY () const |
|
virtual vector< string > | GetVariables2DXZ () const |
|
virtual vector< string > | GetVariables2DYZ () const |
|
virtual vector< string > | GetCoordinateVariables () const |
|
virtual vector< long > | GetPeriodicBoundary () const |
|
virtual vector< long > | GetGridPermutation () const |
|
virtual double | GetTSUserTime (size_t ts) const |
|
virtual void | GetTSUserTimeStamp (size_t ts, string &s) const |
|
virtual RegularGrid * | GetGrid (size_t ts, string varname, int reflevel, int lod, const size_t min[3], const size_t max[3], bool lock=false) |
|
void | UnlockGrid (const RegularGrid *rg) |
|
int | UnlockRegion (const float *) |
|
void | Clear () |
|
int | GetDataRange (size_t ts, const char *varname, float range[2], int reflevel=0, int lod=0) |
|
int | GetValidRegion (size_t ts, const char *varname, int reflevel, size_t min[3], size_t max[3]) |
|
virtual int | VariableExists (size_t ts, const char *varname, int reflevel=0, int lod=0) |
|
bool | BestMatch (size_t ts, const char *varname, int req_reflevel, int req_lod, int &reflevel, int &lod) |
|
int | NewPipeline (PipeLine *pipeline) |
|
void | RemovePipeline (string name) |
|
bool | IsVariableDerived (string varname) const |
|
bool | IsVariableNative (string varname) const |
|
virtual VarType_T | GetVarType (const string &varname) const |
|
bool | GetMissingValue (string varname, float &value) const |
|
void | PurgeVariable (string varname) |
|
virtual void | MapUserToVox (size_t timestep, const double vcoord0[3], size_t vcoord1[3], int reflevel=0, int lod=0) |
|
virtual void | MapVoxToUser (size_t timestep, const size_t vcoord0[3], double vcoord1[3], int ref_level=0, int lod=0) |
|
virtual void | GetEnclosingRegion (size_t ts, const double minu[3], const double maxu[3], size_t min[3], size_t max[3], int reflevel=0, int lod=0) |
|
virtual bool | IsCoordinateVariable (string varname) const |
|
void | PrintCache (std::ostream &o) |
|
void | SetInterpolationOrder (int order) |
|
int | GetInterpolationOrder () const |
|
| MyBase () |
|
const string & | getClassName () const |
|
|
virtual int | Initialize (vector< string > files) |
|
virtual string | _GetGridType () const |
|
virtual int | _GetNumTransforms () const |
|
virtual long | _GetNumTimeSteps () const |
|
virtual string | _GetMapProjection () const |
|
virtual void | _GetBlockSize (size_t bs[3], int reflevel) const |
|
virtual vector< string > | _GetVariables3D () const |
|
virtual vector< string > | _GetVariables2DXY () const |
|
virtual vector< string > | _GetVariables2DXZ () const |
|
virtual vector< string > | _GetVariables2DYZ () const |
|
virtual int | _OpenVariableRead (size_t timestep, const char *varname, int, int) |
|
virtual bool | _GetMissingValue (string varname, float &value) const |
|
virtual int | _CloseVariable () |
|
virtual vector< double > | _GetExtents (size_t ts) const |
|
virtual vector< long > | _GetPeriodicBoundary () const |
|
virtual vector< long > | _GetGridPermutation () const |
|
virtual const float * | _GetDataRange () const |
|
virtual void | _GetDim (size_t dim[3], int) const |
|
virtual void | _GetValidRegion (size_t min[3], size_t max[3], int) const |
|
virtual int | _BlockReadRegion (const size_t *, const size_t *, float *region) |
|
virtual double | _GetTSUserTime (size_t ts) const |
|
virtual void | _GetTSUserTimeStamp (size_t ts, string &s) const |
|
virtual int | _VariableExists (size_t ts, const char *varname, int reflevel=0, int lod=0) const |
|
virtual vector< size_t > | _GetCRatios () const |
|
virtual string | _GetCoordSystemType () const |
|
virtual vector< double > | _GetTSXCoords (size_t ts) const |
|
virtual vector< double > | _GetTSYCoords (size_t ts) const |
|
virtual vector< double > | _GetTSZCoords (size_t ts) const |
|
virtual vector< string > | _GetCoordinateVariables () const |
|
virtual int | _BlockReadRegion (const size_t bmin[3], const size_t bmax[3], float *region)=0 |
|
void | SetClassName (const string &name) |
|
Definition at line 29 of file DataMgrMPAS.h.
virtual void VAPoR::DataMgrMPAS::_GetBlockSize |
( |
size_t |
bs[3], |
|
|
int |
reflevel |
|
) |
| const |
|
protectedvirtual |
Return the internal blocking factor at a given refinement level
For multi-resolution data this method returns the dimensions of a data block at refinement level reflevel
, where reflevel is in the range 0 to GetNumTransforms(). A value of -1 may be specified to indicate the maximum refinement level. In fact, any value outside the valid refinement level range will be treated as the maximum refinement level.
- Parameters
-
[in] | reflevel | Refinement level |
| | |
Implements VAPoR::DataMgr.
virtual const float* VAPoR::DataMgrMPAS::_GetDataRange |
( |
| ) |
const |
|
inlineprotectedvirtual |
Return the data range for the currently open variable
The method returns the minimum and maximum data values, respectively, for the variable currently opened. If the variable is not opened, or if it is opened for writing, the results are undefined.
- Returns
- range A pointer to a two-element array containing the Min and Max data values, respectively. If the derived class' implementation of this method returns NULL, the DataMgr class will compute the min and max itself.
Reimplemented from VAPoR::DataMgr.
Definition at line 57 of file DataMgrMPAS.h.
virtual void VAPoR::DataMgrMPAS::_GetDim |
( |
size_t |
dim[3], |
|
|
int |
reflevel |
|
) |
| const |
|
protectedvirtual |
Get the dimension of a volume
Returns the X,Y,Z coordinate dimensions of all data variables in grid (voxel) coordinates at the resolution level indicated by reflevel
. Hence, all variables of a given type (3D or 2D) must have the same dimension. If reflevel
is -1 (or the value returned by GetNumTransforms()) the native grid resolution is returned. In fact, any value outside the valid range is treated as the maximum refinement level
- Parameters
-
[in] | reflevel | Refinement level of the variable |
[out] | dim | A three element vector (ordered X, Y, Z) containing the voxel dimensions of the data at the specified resolution. |
- See also
- GetNumTransforms()
Implements VAPoR::DataMgr.
virtual vector<double> VAPoR::DataMgrMPAS::_GetExtents |
( |
size_t |
ts | ) |
const |
|
protectedvirtual |
Return the domain extents specified in user coordinates
Return the domain extents specified in user coordinates for the indicated time step. Variables in the data have spatial positions defined in a user coordinate system. These positions may vary with time. This method returns min and max bounds, in user coordinates, of all variables at a given time step.
- Parameters
-
[in] | ts | A valid data set time step in the range from zero to GetNumTimeSteps() - 1. If ts is out of range, GetExtents() will return a reasonable default value. |
- Return values
-
extents | A six-element array containing the min and max bounds of the data domain in user-defined coordinates. The first three elements specify the minimum X, Y, and Z bounds, respectively, the second three elements specify the maximum bounds. |
Implements VAPoR::DataMgr.
virtual double VAPoR::DataMgrMPAS::_GetTSUserTime |
( |
size_t |
ts | ) |
const |
|
inlineprotectedvirtual |
Return the time for a time step
This method returns the time, in user-defined coordinates, associated with the time step, ts
. Variables such as velocity field components that are expressed in distance per units of time are expected to use the same time coordinates as the values returned by this mehtod.
- Parameters
-
- Return values
-
value | The user time at time step ts . If ts is outside the valid range zero is returned. |
Implements VAPoR::DataMgr.
Definition at line 62 of file DataMgrMPAS.h.
virtual void VAPoR::DataMgrMPAS::_GetTSUserTimeStamp |
( |
size_t |
ts, |
|
|
string & |
s |
|
) |
| const |
|
inlineprotectedvirtual |
Return the time for a time step
This method returns the user time, associated with the time step, ts
, as a formatted string. The returned time stamp is intended to be used for annotation purposes
- Parameters
-
[in] | ts | A valid data set time step in the range from zero to GetNumTimeSteps() - 1. |
[out] | s | A formated time string. If ts is outside the valid range zero the empty string is returned. |
Implements VAPoR::DataMgr.
Definition at line 63 of file DataMgrMPAS.h.
virtual int VAPoR::DataMgrMPAS::_OpenVariableRead |
( |
size_t |
timestep, |
|
|
const char * |
varname, |
|
|
int |
reflevel, |
|
|
int |
lod |
|
) |
| |
|
protectedvirtual |
Open the named variable for reading
This method prepares the multi-resolution, multi-lod data volume, indicated by a variable name and time step pair, for subsequent read operations by methods of this class. Furthermore, the number of the refinement level parameter, reflevel
indicates the resolution of the volume in the multiresolution hierarchy, and the lod
parameter indicates the level of detail.
The valid range of values for reflevel
is [0..max_refinement], where max_refinement
is the maximum finement level of the data set: GetNumTransforms(). A value of zero indicates the coarsest resolution data, a value of max_refinement
indicates the finest resolution data.
The valid range of values for lod
is [0..max_lod], where max_lod
is the maximum lod of the data set: GetCRatios().size() - 1. A value of zero indicates the highest compression ratio, a value of max_lod
indicates the lowest compression ratio.
An error occurs, indicated by a negative return value, if the volume identified by the {varname, timestep, reflevel, lod} tupple is not present on disk. Note the presence of a volume can be tested for with the VariableExists() method.
- Parameters
-
[in] | timestep | Time step of the variable to read |
[in] | varname | Name of the variable to read |
[in] | reflevel | Refinement level of the variable. A value of -1 indicates the maximum refinment level defined for the VDC |
[in] | lod | Level of detail requested. A value of -1 indicates the lowest compression level available for the VDC |
- See also
- GetVariables3D(), GetVariables2DXY(), GetNumTransforms()
Implements VAPoR::DataMgr.
virtual int VAPoR::DataMgrMPAS::_VariableExists |
( |
size_t |
ts, |
|
|
const char * |
varname, |
|
|
int |
reflevel = 0 , |
|
|
int |
lod = 0 |
|
) |
| const |
|
inlineprotectedvirtual |
Returns true if indicated data volume is available
Returns true if the variable identified by the timestep, variable name, refinement level, and level-of-detail is present in the data set. Returns 0 if the variable is not present.
- Parameters
-
[in] | ts | A valid time step between 0 and GetNumTimesteps()-1 |
[in] | varname | A valid variable name |
[in] | reflevel | Refinement level requested. The coarsest refinement level is 0 (zero). A value of -1 indicates the finest refinement level contained in the VDC. |
[in] | lod | Compression level of detail requested. The coarsest approximation level is 0 (zero). A value of -1 indicates the finest refinement level contained in the VDC. |
Implements VAPoR::DataMgr.
Definition at line 64 of file DataMgrMPAS.h.