VAPoR  0.1
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
VAPoR::WaveletBlockIOBase Class Referenceabstract

Performs data IO to VDF files. More...

#include <WaveletBlockIOBase.h>

Inheritance diagram for VAPoR::WaveletBlockIOBase:
VAPoR::VDFIOBase VAPoR::MetadataVDC VAPoR::Metadata VetsUtil::MyBase VAPoR::ParsedXml VAPoR::WaveletBlock3DReader VAPoR::WaveletBlock3DRegionReader VAPoR::WaveletBlock3DRegionWriter VAPoR::WaveletBlock3DWriter VAPoR::WaveletBlock3DBufReader VAPoR::DataMgrWB VAPoR::WaveletBlock3DBufWriter

Public Member Functions

 WaveletBlockIOBase (const MetadataVDC &metadata)
 
 WaveletBlockIOBase (const string &metafile)
 
virtual ~WaveletBlockIOBase ()
 
virtual int VariableExists (size_t ts, const char *varname, int reflevel=0, int lod=0) const
 
virtual int OpenVariableWrite (size_t timestep, const char *varname, int reflevel=-1, int lod=-1)
 
virtual int BlockWriteRegion (const float *region, const size_t bmin[3], const size_t bmax[3], bool block=true)
 
virtual int WriteRegion (const float *region, const size_t min[3], const size_t max[3])
 
virtual int WriteRegion (const float *region)
 
virtual int WriteSlice (const float *slice)
 
virtual int OpenVariableRead (size_t timestep, const char *varname, int reflevel=0, int lod=0)
 
virtual int BlockReadRegion (const size_t bmin[3], const size_t bmax[3], float *region, bool unblock=true)
 
virtual int ReadRegion (const size_t min[3], const size_t max[3], float *region)
 
virtual int ReadRegion (float *region)
 
virtual int ReadSlice (float *slice)
 
virtual int CloseVariable ()
 
int GetBlockMins (const float **mins, int reflevel)
 
int GetBlockMaxs (const float **maxs, int reflevel)
 
void Tile2NonTile (const float *blk, const size_t bcoord[2], const size_t min[2], const size_t max[2], VarType_T vtype, float *voxels) const
 
void Block2NonBlock (const float *blk, const size_t bcoord[3], const size_t min[3], const size_t max[3], float *voxels) const
 
virtual const float * GetDataRange () const
 
void GetValidRegion (size_t min[3], size_t max[3], int reflevel) const
 
virtual void GetDim (size_t dim[3], int reflevel=0) const
 
virtual void GetDimBlk (size_t bdim[3], int reflevel=0) const
 
- Public Member Functions inherited from VAPoR::VDFIOBase
 VDFIOBase (const MetadataVDC &metadata)
 
 VDFIOBase (const string &metafile)
 
virtual ~VDFIOBase ()
 
double GetReadTimer () const
 
double GetSeekTimer () const
 
void SeekTimerReset ()
 
void SeekTimerStart ()
 
void SeekTimerStop ()
 
double GetWriteTimer () const
 
double GetXFormTimer () const
 
- Public Member Functions inherited from VAPoR::MetadataVDC
 MetadataVDC (const size_t dim[3], size_t numTransforms, const size_t bs[3], int nFilterCoef=1, int nLiftingCoef=1, int msbFirst=1, int vdfVersion=VDF_VERSION)
 
 MetadataVDC (const size_t dim[3], const size_t bs[3], const vector< size_t > &cratios, string wname, string wmode)
 
 MetadataVDC (const string &metafile)
 
 MetadataVDC (const MetadataVDC &node)
 
virtual ~MetadataVDC ()
 
int Merge (const MetadataVDC &metadata, size_t ts=0)
 
int Merge (const string &path, size_t ts=0)
 
int MakeCurrent () const
 
const string & GetParentDir () const
 
const string & GetMetafileName () const
 
const string & GetDataDirName () const
 
int ConstructFullVBase (size_t ts, const string &var, string *path) const
 
int ConstructFullAuxBase (size_t ts, string *path) const
 
int Write (const string &path, int relative_path=1)
 
virtual const size_t * GetBlockSize () const
 
virtual void GetBlockSize (size_t bs[3], int) const
 
virtual void GetGridDim (size_t dim[3]) const
 
const size_t * GetDimension () const
 
int GetFilterCoef () const
 
int GetLiftingCoef () const
 
virtual int GetNumTransforms () const
 
int GetMSBFirst () const
 
int GetVDFVersion () const
 
string GetWaveName () const
 
string GetBoundaryMode () const
 
virtual vector< size_t > GetCRatios () const
 
int GetVDCType () const
 
int SetGridType (const string &value)
 
string GetGridType () const
 
int IsValidGridType (const string &value) const
 
int SetCoordSystemType (const string &value)
 
string GetCoordSystemType () const
 
int IsValidCoordSystemType (const string &value) const
 
int SetExtents (const vector< double > &value)
 
vector< double > GetExtents (size_t ts=0) const
 
int IsValidExtents (const vector< double > &value) const
 
int SetNumTimeSteps (long value)
 
long GetNumTimeSteps () const
 
int IsValidTimeStep (long value) const
 
int SetVariableNames (const vector< string > &value)
 
int SetVariables3D (const vector< string > &value)
 
vector< string > GetVariables3D () const
 
vector< string > GetCoordinateVariables () const
 
int SetCoordinateVariables (const vector< string > &value)
 
int SetVariables2DXY (const vector< string > &value)
 
int SetVariables2DXZ (const vector< string > &value)
 
int SetVariables2DYZ (const vector< string > &value)
 
vector< string > GetVariables2DXY () const
 
vector< string > GetVariables2DXZ () const
 
vector< string > GetVariables2DYZ () const
 
int SetComment (const string &value)
 
string GetComment () const
 
int SetPeriodicBoundary (const vector< long > &value)
 
vector< long > GetPeriodicBoundary () const
 
int SetGridPermutation (const vector< long > &value)
 
int SetMissingValue (double value)
 
int SetMissingValue ()
 
vector< double > GetMissingValue () const
 
vector< long > GetGridPermutation () const
 
int SetMapProjection (const string &value)
 
virtual string GetMapProjection () const
 
int SetTSUserTime (size_t ts, const vector< double > &value)
 
double GetTSUserTime (size_t ts) const
 
int SetTSUserTimeStamp (size_t ts, const string &s)
 
void GetTSUserTimeStamp (size_t ts, string &s) const
 
string GetTSAuxBasePath (size_t ts) const
 
int HasTSUserTime (size_t ts) const
 
int IsValidUserTime (const vector< double > &value) const
 
int SetTSXCoords (size_t ts, const vector< double > &value)
 
vector< double > GetTSXCoords (size_t ts) const
 
int SetTSYCoords (size_t ts, const vector< double > &value)
 
vector< double > GetTSYCoords (size_t ts) const
 
int SetTSZCoords (size_t ts, const vector< double > &value)
 
vector< double > GetTSZCoords (size_t ts) const
 
int SetTSComment (size_t ts, const string &value)
 Set a comment for the time step indicated by ts. More...
 
string GetTSComment (size_t ts) const
 Return the comment for the indicated time step, ts, if it exists. More...
 
int SetTSExtents (size_t ts, const vector< double > &value)
 
vector< double > GetTSExtents (size_t ts) const
 
int SetTSMissingValue (size_t ts, double v)
 
vector< double > GetTSMissingValue (size_t ts) const
 Returns the time-varying missing value, if any. More...
 
int SetVComment (size_t ts, const string &var, const string &value)
 
string GetVComment (size_t ts, const string &var) const
 
string GetVBasePath (size_t ts, const string &var) const
 
int SetVBasePath (size_t ts, const string &var, const string &value)
 
int SetVDataRange (size_t ts, const string &var, const vector< double > &value)
 
vector< double > GetVDataRange (size_t ts, const string &var) const
 
int IsValidVDataRange (const vector< double > &value) const
 
int SetVMissingValue (size_t ts, const string &var, double v)
 
vector< double > GetVMissingValue (size_t ts, const string &var) const
 
vector< string > GetUserDataLongTags () const
 
int SetUserDataLong (const string &tag, const vector< long > &value)
 
vector< long > GetUserDataLong (const string &tag) const
 
vector< string > GetUserDataDoubleTags () const
 
int SetUserDataDouble (const string &tag, const vector< double > &value)
 
vector< double > GetUserDataDouble (const string &tag) const
 
vector< string > GetUserDataStringTags () const
 
int SetUserDataString (const string &tag, const string &value)
 
string GetUserDataString (const string &tag) const
 
int SetUserDataStringVec (const string &tag, const vector< string > &value)
 
vector< string > GetUserDataStringVec (const string &tag) const
 
vector< string > GetTSUserDataLongTags () const
 
int SetTSUserDataLong (size_t ts, const string &tag, const vector< long > &value)
 
vector< long > GetTSUserDataLong (size_t ts, const string &tag) const
 
int SetTSUserDataDouble (size_t ts, const string &tag, const vector< double > &value)
 
vector< double > GetTSUserDataDouble (size_t ts, const string &tag) const
 
vector< string > GetTSUserDataDoubleTags () const
 
int SetTSUserDataString (size_t ts, const string &tag, const string &value)
 
string GetTSUserDataString (size_t ts, const string &tag) const
 
vector< string > GetTSUserDataStringTags () const
 
vector< string > GetVUserDataLongTags () const
 
int SetVUserDataLong (size_t ts, const string &var, const string &tag, const vector< long > &value)
 
vector< long > GetVUserDataLong (size_t ts, const string &var, const string &tag) const
 
vector< string > GetVUserDataDoubleTags () const
 
int SetVUserDataDouble (size_t ts, const string &var, const string &tag, const vector< double > &value)
 
vector< double > GetVUserDataDouble (size_t ts, const string &var, const string &tag) const
 
int SetVUserDataString (size_t ts, const string &var, const string &tag, const string &value)
 
string GetVUserDataString (size_t ts, const string &var, const string &tag) const
 
vector< string > GetVUserDataStringTags () const
 
- Public Member Functions inherited from VetsUtil::MyBase
 MyBase ()
 
const string & getClassName () const
 
- Public Member Functions inherited from VAPoR::ParsedXml
virtual ~ParsedXml ()
 
virtual bool charHandler (ExpatParseMgr *, const XML_Char *, int)
 

Protected Member Functions

int seekBlocks (unsigned int offset, int reflevel=0)
 
int seekLambdaBlocks (const size_t bcoord[3])
 
int seekGammaBlocks (const size_t bcoord[3], int reflevel)
 
int readBlocks (size_t n, float *blks, int reflevel)
 
int readLambdaBlocks (size_t n, float *blks)
 
int readGammaBlocks (size_t n, float *blks, int reflevel)
 
int writeBlocks (const float *blks, size_t n, int reflevel)
 
int writeLambdaBlocks (const float *blks, size_t n)
 
int writeGammaBlocks (const float *blks, size_t n, int reflevel)
 
virtual void _GetDataRange (float range[2]) const =0
 
virtual void _GetValidRegion (size_t minreg[3], size_t maxreg[3]) const
 
- Protected Member Functions inherited from VAPoR::VDFIOBase
void _ReadTimerReset ()
 
void _ReadTimerStart ()
 
void _ReadTimerStop ()
 
void _WriteTimerReset ()
 
void _WriteTimerStart ()
 
void _WriteTimerStop ()
 
void _XFormTimerReset ()
 
void _XFormTimerStart ()
 
void _XFormTimerStop ()
 
int _MaskOpenWrite (size_t timestep, string varname, int reflevel)
 
int _MaskOpenRead (size_t timestep, string varname, int reflevel)
 
int _MaskClose ()
 
int _MaskWrite (const float *srcblk, const size_t bmin_p[3], const size_t bmax_p[3], bool block)
 
int _MaskRead (const size_t bmin_p[3], const size_t bmax_p[3])
 
void _MaskRemove (float *blk, bool &valid_data) const
 
void _MaskReplace (size_t bx, size_t by, size_t bz, float *blk) const
 
- Protected Member Functions inherited from VetsUtil::MyBase
void SetClassName (const string &name)
 

Protected Attributes

int _reflevel
 
size_t _timeStep
 
string _varName
 
float * _super_block
 
float * _super_tile
 
VarType_T _vtype
 
WaveletBlock2D_wb2dXY
 
WaveletBlock2D_wb2dXZ
 
WaveletBlock2D_wb2dYZ
 
WaveletBlock3D_wb3d
 
float * _mins3d [MAX_LEVELS]
 
float * _maxs3d [MAX_LEVELS]
 
float * _mins2d [MAX_LEVELS]
 
float * _maxs2d [MAX_LEVELS]
 

Static Protected Attributes

static const int MAX_LEVELS = 16
 
- Static Protected Attributes inherited from VAPoR::ParsedXml
static const string _stringType
 
static const string _longType
 
static const string _doubleType
 
static const string _typeAttr
 

Additional Inherited Members

- Public Types inherited from VetsUtil::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Static Public Member Functions inherited from VetsUtil::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message. More...
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code. More...
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code. More...
 
static int GetErrCode ()
 Retrieve the current error code. More...
 
static void SetErrMsgCB (ErrMsgCB_T cb)
 
static ErrMsgCB_T GetErrMsgCB ()
 
static void SetErrMsgFilePtr (FILE *fp)
 
static const FILE * SetErrMsgFilePtr ()
 
static void SetDiagMsg (const char *format,...)
 Record a formatted diagnostic message. More...
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 
- Public Attributes inherited from VAPoR::ParsedXml
ParsedXmlpreviousClass
 
- Static Public Attributes inherited from VetsUtil::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 
- Static Protected Member Functions inherited from VAPoR::VDFIOBase
static void _UnpackCoord (VarType_T vtype, const size_t src[3], size_t dst[3], size_t fill)
 
static void _PackCoord (VarType_T vtype, const size_t src[3], size_t dst[3], size_t fill)
 
static void _FillPackedCoord (VarType_T vtype, const size_t src[3], size_t dst[3], size_t fill)
 

Detailed Description

Performs data IO to VDF files.

Author
John Clyne
Version
$Revision$
Date
$Date$

This class provides an API for performing low-level IO to/from VDF files

Definition at line 28 of file WaveletBlockIOBase.h.

Constructor & Destructor Documentation

VAPoR::WaveletBlockIOBase::WaveletBlockIOBase ( const MetadataVDC metadata)

Constructor for the WaveletBlockIOBase class.

Parameters
[in]metadataPointer to a metadata class object for which all future class operations will apply
[in]nthreadsNumber of execution threads that may be used by the class for parallel execution.
Note
The success or failure of this constructor can be checked with the GetErrCode() method.
See also
MetadataVDC, WaveletBlock3DRegionReader, GetErrCode(),
VAPoR::WaveletBlockIOBase::WaveletBlockIOBase ( const string &  metafile)

Constructor for the WaveletBlockIOBase class.

Parameters
[in]metafilePath to a metadata file for which all future class operations will apply
[in]nthreadsNumber of execution threads that may be used by the class for parallel execution.
Note
The success or failure of this constructor can be checked with the GetErrCode() method.
See also
MetadataVDC, WaveletBlock3DRegionReader, GetErrCode(),
virtual VAPoR::WaveletBlockIOBase::~WaveletBlockIOBase ( )
virtual

Member Function Documentation

virtual void VAPoR::WaveletBlockIOBase::_GetDataRange ( float  range[2]) const
protectedpure virtual
virtual void VAPoR::WaveletBlockIOBase::_GetValidRegion ( size_t  minreg[3],
size_t  maxreg[3] 
) const
protectedvirtual
void VAPoR::WaveletBlockIOBase::Block2NonBlock ( const float *  blk,
const size_t  bcoord[3],
const size_t  min[3],
const size_t  max[3],
float *  voxels 
) const

Unpack a block into a contiguous volume

Unblock the block blk into a volume pointed to by voxels

Parameters
[in]blkA block of voxels
[in]bcoordOffset of the start of the block within the volume in integer coordinates
[in]minMinimum extents of destination volume in voxel coordinates. Must be between 0 and block_size-1
[in]maxMaximum extents of destination volume in voxel coordinates.
[out]voxelsA pointer to a volume
virtual int VAPoR::WaveletBlockIOBase::BlockReadRegion ( const size_t  bmin[3],
const size_t  bmax[3],
float *  region,
bool  unblock = true 
)
inlinevirtual

Implements VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DRegionReader.

Definition at line 160 of file WaveletBlockIOBase.h.

virtual int VAPoR::WaveletBlockIOBase::BlockWriteRegion ( const float *  region,
const size_t  bmin[3],
const size_t  bmax[3],
bool  block = true 
)
inlinevirtual

Implements VAPoR::VDFIOBase.

Definition at line 111 of file WaveletBlockIOBase.h.

virtual int VAPoR::WaveletBlockIOBase::CloseVariable ( )
virtual
int VAPoR::WaveletBlockIOBase::GetBlockMaxs ( const float **  maxs,
int  reflevel 
)

Return the maximum data values for each block in the volume

int VAPoR::WaveletBlockIOBase::GetBlockMins ( const float **  mins,
int  reflevel 
)

Return the minimum data values for each block in the volume

This method returns an a pointer to an internal array containing the minimum data value for each block at the specified refinement level. The serial array is dimensioned nbx by nby by nbz, where nbx, nby, and nbz are the dimensions of the volume in blocks at the requested refinement level.

Parameters
[in]reflevelRefinement level requested. The coarsest refinement level is 0 (zero). A value of -1 indicates the finest refinement level contained in the VDC.
[out]minsThe address of a pointer to float to which will be assigned the address of the internal min data array

The values returned are undefined if the variable is either not open for reading, closed after writing

virtual const float* VAPoR::WaveletBlockIOBase::GetDataRange ( ) const
inlinevirtual

Implements VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DBufWriter.

Definition at line 245 of file WaveletBlockIOBase.h.

Referenced by VAPoR::DataMgrWB::_GetDataRange().

virtual void VAPoR::WaveletBlockIOBase::GetDim ( size_t  dim[3],
int  reflevel = 0 
) const
virtual

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]reflevelRefinement level of the variable
[out]dimA three element vector (ordered X, Y, Z) containing the voxel dimensions of the data at the specified resolution.
See also
GetNumTransforms()

Reimplemented from VAPoR::Metadata.

Referenced by VAPoR::DataMgrWB::_GetDim().

virtual void VAPoR::WaveletBlockIOBase::GetDimBlk ( size_t  bdim[3],
int  reflevel = 0 
) const
virtual

Get dimension of a volume in blocks

Performs same operation as GetDim() except returns dimensions in block coordinates instead of voxels.

Parameters
[in]reflevelRefinement level of the variable. A value of -1 indicates the maximum refinment level defined. In fact, any value outside the valid range is treated as the maximum refinement level
[out]bdimTransformed dimension in blocks.
See also
Metadata::GetNumTransforms()

Reimplemented from VAPoR::Metadata.

void VAPoR::WaveletBlockIOBase::GetValidRegion ( size_t  min[3],
size_t  max[3],
int  reflevel 
) const
virtual int VAPoR::WaveletBlockIOBase::OpenVariableRead ( size_t  timestep,
const char *  varname,
int  reflevel = 0,
int  lod = 0 
)
virtual

Open the named variable for reading

This method prepares the multiresolution 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. The valid range of values for reflevel is [0..max_refinement], where max_refinement is the maximum finement level of the data set: Metadata::GetNumTransforms(). volume when the volume was created. A value of zero indicates the coarsest resolution data, a value of max_refinement indicates the finest resolution data.

An error occurs, indicated by a negative return value, if the volume identified by the {varname, timestep, reflevel} tripple is not present on disk. Note the presence of a volume can be tested for with the VariableExists() method.

Parameters
[in]timestepTime step of the variable to read
[in]varnameName of the variable to read
[in]reflevelRefinement level of the variable. A value of -1 indicates the maximum refinment level defined for the VDC
Return values
statusReturns a non-negative value on success
See also
Metadata::GetVariableNames(), Metadata::GetNumTransforms()

Reimplemented from VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DRegionWriter, VAPoR::WaveletBlock3DWriter, VAPoR::WaveletBlock3DReader, VAPoR::WaveletBlock3DRegionReader, and VAPoR::WaveletBlock3DBufReader.

virtual int VAPoR::WaveletBlockIOBase::OpenVariableWrite ( size_t  timestep,
const char *  varname,
int  reflevel = -1,
int  lod = -1 
)
virtual

Open the named variable for writing

Prepare a vapor data file for the creation of a multiresolution data volume via subsequent write operations by other methods of this classes derived from this class. The data volume is identified by the specfied time step and variable name. The number of forward transforms applied to the volume is determined by the Metadata object used to initialize the class. The number of refinement levels actually saved to the data collection are determined by reflevels. If reflevels is zero, the default, only the coarsest approximation is saved. If reflevels is one, all the coarsest and first refinement level is saved, and so on. A value of -1 indicates the maximum refinment level permitted by the VDF

Parameters
[in]timestepTime step of the variable to read
[in]varnameName of the variable to read
[in]reflevelRefinement level of the variable. A value of -1 indicates the maximum refinment level.
Return values
statusReturns a non-negative value on success
See also
Metadata::GetVariableNames(), Metadata::GetNumTransforms()

Reimplemented from VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DReader, VAPoR::WaveletBlock3DRegionReader, VAPoR::WaveletBlock3DRegionWriter, VAPoR::WaveletBlock3DBufWriter, and VAPoR::WaveletBlock3DWriter.

int VAPoR::WaveletBlockIOBase::readBlocks ( size_t  n,
float *  blks,
int  reflevel 
)
protected
int VAPoR::WaveletBlockIOBase::readGammaBlocks ( size_t  n,
float *  blks,
int  reflevel 
)
protected
int VAPoR::WaveletBlockIOBase::readLambdaBlocks ( size_t  n,
float *  blks 
)
protected
virtual int VAPoR::WaveletBlockIOBase::ReadRegion ( const size_t  min[3],
const size_t  max[3],
float *  region 
)
inlinevirtual

Implements VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DRegionReader.

Definition at line 164 of file WaveletBlockIOBase.h.

virtual int VAPoR::WaveletBlockIOBase::ReadRegion ( float *  region)
inlinevirtual

Implements VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DRegionReader.

Definition at line 168 of file WaveletBlockIOBase.h.

virtual int VAPoR::WaveletBlockIOBase::ReadSlice ( float *  slice)
inlinevirtual

Implements VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DBufReader.

Definition at line 172 of file WaveletBlockIOBase.h.

int VAPoR::WaveletBlockIOBase::seekBlocks ( unsigned int  offset,
int  reflevel = 0 
)
protected
int VAPoR::WaveletBlockIOBase::seekGammaBlocks ( const size_t  bcoord[3],
int  reflevel 
)
protected
int VAPoR::WaveletBlockIOBase::seekLambdaBlocks ( const size_t  bcoord[3])
protected
void VAPoR::WaveletBlockIOBase::Tile2NonTile ( const float *  blk,
const size_t  bcoord[2],
const size_t  min[2],
const size_t  max[2],
VarType_T  vtype,
float *  voxels 
) const

Unpack a tile into a contiguous volume

Untile the tile blk into a volume pointed to by voxels

Parameters
[in]blkA tile of voxels
[in]bcoordOffset of the start of the tile within the volume in integer coordinates
[in]minMinimum extents of destination volume in voxel coordinates. Must be between 0 and block_size-1
[in]maxMaximum extents of destination volume in voxel coordinates.
[out]voxelsA pointer to a volume
virtual int VAPoR::WaveletBlockIOBase::VariableExists ( size_t  ts,
const char *  varname,
int  reflevel = 0,
int  lod = 0 
) const
virtual

Returns true if indicated data volume exists on disk

Returns true if the variable identified by the timestep, variable name, and refinement level is present on disk. Returns 0 if the variable is not present.

Parameters
[in]tsA valid time step from the Metadata object used to initialize the class
[in]varnameA valid variable name
[in]reflevelRefinement level requested. The coarsest refinement level is 0 (zero). A value of -1 indicates the finest refinement level contained in the VDC.

Referenced by VAPoR::DataMgrWB::_VariableExists().

int VAPoR::WaveletBlockIOBase::writeBlocks ( const float *  blks,
size_t  n,
int  reflevel 
)
protected
int VAPoR::WaveletBlockIOBase::writeGammaBlocks ( const float *  blks,
size_t  n,
int  reflevel 
)
protected
int VAPoR::WaveletBlockIOBase::writeLambdaBlocks ( const float *  blks,
size_t  n 
)
protected
virtual int VAPoR::WaveletBlockIOBase::WriteRegion ( const float *  region,
const size_t  min[3],
const size_t  max[3] 
)
inlinevirtual

Implements VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DRegionWriter.

Definition at line 116 of file WaveletBlockIOBase.h.

virtual int VAPoR::WaveletBlockIOBase::WriteRegion ( const float *  region)
inlinevirtual

Implements VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DRegionWriter.

Definition at line 120 of file WaveletBlockIOBase.h.

virtual int VAPoR::WaveletBlockIOBase::WriteSlice ( const float *  slice)
inlinevirtual

Implements VAPoR::VDFIOBase.

Reimplemented in VAPoR::WaveletBlock3DBufWriter.

Definition at line 124 of file WaveletBlockIOBase.h.

Member Data Documentation

float* VAPoR::WaveletBlockIOBase::_maxs2d[MAX_LEVELS]
protected

Definition at line 276 of file WaveletBlockIOBase.h.

float* VAPoR::WaveletBlockIOBase::_maxs3d[MAX_LEVELS]
protected

Definition at line 273 of file WaveletBlockIOBase.h.

float* VAPoR::WaveletBlockIOBase::_mins2d[MAX_LEVELS]
protected

Definition at line 275 of file WaveletBlockIOBase.h.

float* VAPoR::WaveletBlockIOBase::_mins3d[MAX_LEVELS]
protected

Definition at line 272 of file WaveletBlockIOBase.h.

int VAPoR::WaveletBlockIOBase::_reflevel
protected

Definition at line 259 of file WaveletBlockIOBase.h.

float* VAPoR::WaveletBlockIOBase::_super_block
protected

Definition at line 263 of file WaveletBlockIOBase.h.

float* VAPoR::WaveletBlockIOBase::_super_tile
protected

Definition at line 264 of file WaveletBlockIOBase.h.

size_t VAPoR::WaveletBlockIOBase::_timeStep
protected

Definition at line 261 of file WaveletBlockIOBase.h.

string VAPoR::WaveletBlockIOBase::_varName
protected

Definition at line 262 of file WaveletBlockIOBase.h.

VarType_T VAPoR::WaveletBlockIOBase::_vtype
protected

Definition at line 265 of file WaveletBlockIOBase.h.

WaveletBlock2D* VAPoR::WaveletBlockIOBase::_wb2dXY
protected

Definition at line 267 of file WaveletBlockIOBase.h.

WaveletBlock2D* VAPoR::WaveletBlockIOBase::_wb2dXZ
protected

Definition at line 268 of file WaveletBlockIOBase.h.

WaveletBlock2D* VAPoR::WaveletBlockIOBase::_wb2dYZ
protected

Definition at line 269 of file WaveletBlockIOBase.h.

WaveletBlock3D* VAPoR::WaveletBlockIOBase::_wb3d
protected

Definition at line 270 of file WaveletBlockIOBase.h.

const int VAPoR::WaveletBlockIOBase::MAX_LEVELS = 16
staticprotected

Definition at line 256 of file WaveletBlockIOBase.h.


The documentation for this class was generated from the following file: