18 #include <vapor/MyBase.h>
19 #include <vapor/DataMgr.h>
20 #include <vapor/common.h>
33 DataMgrICON(
const vector <string> &files,
size_t mem_size );
38 virtual int Initialize(
const char *files);
43 virtual void _GetBlockSize(
size_t bs[3],
int reflevel)
const;
44 virtual vector <string> _GetVariables3D()
const;
45 virtual vector <string> _GetVariables2DXY()
const;
46 virtual vector <string>
_GetVariables2DXZ()
const {vector <string> empty;
return (empty); };
47 virtual vector <string>
_GetVariables2DYZ()
const {vector <string> empty;
return (empty); };
48 virtual int _OpenVariableRead(
size_t timestep,
const char *varname,
int,
int);
49 virtual bool _GetMissingValue(
string varname,
float &value)
const { value=this->missing_value;
return(
true);};
51 virtual vector<double> _GetExtents(
size_t ts)
const;
54 virtual const float *_GetDataRange()
const;
55 virtual void _GetDim(
size_t dim[3],
int )
const;
56 virtual void _GetValidRegion(
size_t min[3],
size_t max[3],
int)
const;
57 virtual int _BlockReadRegion(
const size_t *,
const size_t *,
float *region);
61 virtual int _VariableExists(
size_t ts,
const char *varname,
int reflevel = 0,
int lod = 0 )
const {
return (1); };
67 void Remove_Duplicates(
double * PointLon,
double * PointLat,
int temp_nbr_vertices,
int * vertexID,
int * nbr_cells);
68 void ResampleDataCell(
const int width,
const int height,
float *data);
69 void ResampleDataPoint(
const int width,
const int height,
float *data);
70 void findBoundingBox(
double *bb_lon,
double *bb_lat,
double points[6]);
71 int CreateLandSeaMask();
72 int ConstructGridGeometry();
77 int *LandSeaMaskCell, *LandSeaMaskPoint;
79 int reg_res_x, reg_res_y;
84 double clon_range[2], clat_range[2], vlon_range[2], vlat_range[2];
85 int NumberOfTimeSteps;
88 int NumberOfPointVars;
89 int NumberOfVertLevels;
94 std::vector<long> bool_false;
101 int *CellIndex, *PointIndex;
102 kdtree *CellTree, *PointTree;
virtual string _GetGridType() const
virtual string _GetMapProjection() const
virtual int _CloseVariable()
A cache based data reader.
virtual int _VariableExists(size_t ts, const char *varname, int reflevel=0, int lod=0) const
virtual void _GetTSUserTimeStamp(size_t ts, string &s) const
virtual vector< string > _GetVariables2DXZ() const
virtual vector< long > _GetPeriodicBoundary() const
virtual double _GetTSUserTime(size_t ts) const
virtual bool _GetMissingValue(string varname, float &value) const
virtual vector< long > _GetGridPermutation() const
virtual long _GetNumTimeSteps() const
virtual vector< string > _GetVariables2DYZ() const
virtual int _GetNumTransforms() const