|
| DCReaderGRIB () |
|
| DCReaderGRIB (const vector< string > files) |
|
| ~DCReaderGRIB () |
|
int | HydrostaticPressureEqn () |
|
int | LoadHydroData (float *T, float *Q, float *Sp) |
|
int | CalcVirtualTemperature (float *T, float *Q, float *Sum, float *Tv) |
|
int | DoHydroVarsExist () |
|
void | Print2dVars () |
|
void | _generateWeightTable () |
|
string | GetGridType () const |
|
virtual std::vector< double > | GetTSZCoords (size_t) const |
|
virtual int | OpenVariableRead (size_t timestep, string varname, int reflevel=0, int lod=0) |
|
virtual int | CloseVariable () |
|
virtual int | Read (float *values) |
|
virtual int | ReadSlice (float *slice) |
|
virtual bool | VariableExists (size_t ts, string varname, int reflevel=0, int lod=0) const |
|
virtual void | GetLatLonExtents (size_t ts, double lon_exts[2], double lat_exts[2]) const |
|
virtual std::vector< std::string > | GetVariables2DExcluded () const |
|
virtual std::vector< std::string > | GetVariables3DExcluded () const |
|
virtual long | GetNumTimeSteps () const |
|
virtual void | GetGridDim (size_t dim[3]) const |
|
virtual std::vector< string > | GetVariables3D () const |
|
virtual std::vector< string > | GetVariables2DXY () const |
|
virtual double | GetTSUserTime (size_t ts) const |
|
virtual std::vector< string > | GetVariables2DXZ () const |
|
virtual std::vector< string > | GetVariables2DYZ () const |
|
virtual void | GetBlockSize (size_t bs[3], int reflevel) const |
|
virtual std::vector< double > | GetExtents (size_t ts=0) const |
|
virtual std::vector< long > | GetPeriodicBoundary () const |
|
virtual std::vector< long > | GetGridPermutation () const |
|
virtual void | GetTSUserTimeStamp (size_t ts, std::string &s) const |
|
virtual std::string | GetMapProjection () const |
|
vector< double > | GetZCoordsInMeters () const |
|
void | _LinearInterpolation (float *values) |
|
virtual | ~DCReader () |
|
| Metadata () |
|
virtual | ~Metadata () |
|
virtual int | GetNumTransforms () const |
|
virtual std::vector< size_t > | GetCRatios () const |
|
virtual std::string | GetCoordSystemType () const |
|
virtual std::vector< double > | GetTSXCoords (size_t ts) const |
|
virtual std::vector< double > | GetTSYCoords (size_t ts) const |
|
virtual std::vector< std::string > | GetVariableNames () const |
|
virtual std::vector< std::string > | GetCoordinateVariables () const |
|
virtual void | GetDim (size_t dim[3], int reflevel=0) const |
|
virtual void | GetDimBlk (size_t bdim[3], int reflevel=0) const |
|
virtual bool | GetMissingValue (std::string varname, float &value) const |
|
virtual void | MapVoxToBlk (const size_t vcoord[3], size_t bcoord[3], int reflevel=-1) const |
|
virtual void | MapVoxToUser (size_t timestep, const size_t vcoord0[3], double vcoord1[3], int ref_level=0) const |
|
void | MapUserToVox (size_t timestep, const double vcoord0[3], size_t vcoord1[3], int reflevel) const |
|
virtual VarType_T | GetVarType (const std::string &varname) const |
|
virtual int | IsValidRegion (const size_t min[3], const size_t max[3], int reflevel=0) const |
|
virtual int | IsValidRegionBlk (const size_t min[3], const size_t max[3], int reflevel=0) const |
|
virtual bool | IsCoordinateVariable (std::string varname) const |
|
| MyBase () |
|
const string & | getClassName () const |
|
Definition at line 41 of file DCReaderGRIB.h.
virtual std::vector<double> VAPoR::DCReaderGRIB::GetExtents |
( |
size_t |
ts = 0 | ) |
const |
|
inlinevirtual |
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::Metadata.
Definition at line 87 of file DCReaderGRIB.h.
Referenced by VAPoR::DataMgrGRIB::_GetExtents().
virtual void VAPoR::DCReaderGRIB::GetLatLonExtents |
( |
size_t |
ts, |
|
|
double |
lon_exts[2], |
|
|
double |
lat_exts[2] |
|
) |
| const |
|
virtual |
Return the Longitude and Latitude extents of the grid
This method returns the longitude extents (west-most and east-most) points, and the latitude extents (south-most and north-most) in degrees.
If the time step ts
is invalid, or if for any reason the extents can't be calculated, both lat and lon extents will be set to zero.
- Parameters
-
[in] | timestep | Time step of the grid |
[out] | lon_exts | A two-element array containing the west-most, and east-most points, in that order. Moreover, lon[0] <= lon[1] |
[out] | lat_exts | A two-element array containing the south-most, and north-most points, in that order. Moreover, lat[0] <= lat[1] |
Implements VAPoR::DCReader.
virtual double VAPoR::DCReaderGRIB::GetTSUserTime |
( |
size_t |
ts | ) |
const |
|
inlinevirtual |
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::Metadata.
Definition at line 75 of file DCReaderGRIB.h.
Referenced by VAPoR::DataMgrGRIB::_GetTSUserTime().
virtual int VAPoR::DCReaderGRIB::OpenVariableRead |
( |
size_t |
timestep, |
|
|
string |
varname, |
|
|
int |
reflevel = 0 , |
|
|
int |
lod = 0 |
|
) |
| |
|
virtual |
Open the named variable for reading
This method prepares a data volume (slice), indicated by a variable name and time step pair, for subsequent read operations by methods of this class. The number of the refinement levels 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 refinement level of the data set: Metadata::GetNumTransforms(). A value of zero indicates the coarsest resolution data, a value of max_refinement
(or -1) indicates the finest resolution data. The level-of-detail parameter, lod
, selects the approximation level. Valid values for lod
are integers in the range 0..GetCRatios().size()-1, or the value -1 may be used to select the best approximation available: GetCRatios().size()-1.
An error occurs, indicated by a negative return value, if the volume identified by the {varname, timestep, reflevel, lod} tupple is not available. Note the availability of a volume can be tested 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 | Approximation level of the variable. A value of -1 indicates the maximum approximation level defined for the VDC |
- Return values
-
status | Returns a non-negative value on success |
- See also
- Metadata::GetVariableNames(), Metadata::GetNumTransforms(), GetNumTimeSteps(), GetCRatios()
Implements VAPoR::DCReader.
Referenced by VAPoR::DataMgrGRIB::_OpenVariableRead().
virtual bool VAPoR::DCReaderGRIB::VariableExists |
( |
size_t |
ts, |
|
|
string |
varname, |
|
|
int |
reflevel = 0 , |
|
|
int |
lod = 0 |
|
) |
| const |
|
virtual |
Return true if the named variable is available
This method returns true if the variable named by varname
is available in the data collection at the time step given by ts
, and the specified level-of-detail and resolution.. A variable may be contained in a data set, but not exist for all time steps, levels-of-detail, etc..
- 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 | Approximation level of the variable. A value of -1 indicates the maximum approximation level defined for the VDC |
- Return values
-
status | True if variable is present in the data collection |
- See also
- GetNumTimeSteps(), GetVariableNames()
Reimplemented from VAPoR::DCReader.
Referenced by VAPoR::DataMgrGRIB::_VariableExists().