6 #ifndef _DCReaderNCDF_h_
7 #define _DCReaderNCDF_h_
10 #include <vapor/NetCDFCollection.h>
11 #include <vapor/DCReader.h>
13 #pragma warning(disable : 4251)
31 const std::vector <string> &files,
32 const std::vector <string> &time_dimnames,
33 const std::vector <string> &time_coordvars,
34 const std::vector <string> &staggerd_dims,
35 string missing_attr,
size_t dims[3]
40 virtual void GetGridDim(
size_t dim[3])
const;
42 virtual void GetBlockSize(
size_t bs[3],
int reflevel)
const;
44 virtual string GetCoordSystemType()
const;
46 virtual string GetGridType()
const;
48 virtual std::vector <double> GetExtents(
size_t ts = 0)
const;
51 return (_ncdfC->GetNumTimeSteps());
71 return(_vars3dExcluded);
75 return(_vars2dExcluded);
79 virtual std::vector <string> GetCoordinateVariables()
const;
81 virtual std::vector<long> GetPeriodicBoundary()
const;
83 virtual std::vector<long> GetGridPermutation()
const;
85 virtual double GetTSUserTime(
size_t ts)
const;
87 virtual void GetTSUserTimeStamp(
size_t ts,
string &s)
const;
89 virtual bool GetMissingValue(
string varname,
float &value)
const;
91 virtual bool IsCoordinateVariable(
string varname)
const;
93 virtual int OpenVariableRead(
94 size_t timestep,
string varname,
int reflevel=0,
int lod=0
97 virtual int CloseVariable();
99 virtual int ReadSlice(
float *slice);
103 virtual bool VariableExists(
size_t ts,
string varname,
int i0=0,
int i1=0)
const {
104 return(_ncdfC->VariableExists(ts, varname));
108 size_t ts,
double lon_exts[2],
double lat_exts[2]
110 lon_exts[0] = lon_exts[1] = lat_exts[0] = lat_exts[1] = 0.0;
115 std::vector <size_t> _dims;
116 std::vector <string> _vars3d;
117 std::vector <string> _vars3dExcluded;
118 std::vector <string> _vars2dXY;
119 std::vector <string> _vars2dXZ;
120 std::vector <string> _vars2dYZ;
121 std::vector <string> _vars2dExcluded;
130 vector <size_t> _GetSpatialDims(
string varname)
const;
138 #endif // _DCReaderNCDF_h_
virtual std::vector< string > GetVariables2DYZ() const
virtual bool VariableExists(size_t ts, string varname, int i0=0, int i1=0) const
virtual std::vector< string > GetVariables2DExcluded() const
NetCDFCollection * GetNetCDFCollection() const
virtual std::vector< string > GetVariables3DExcluded() const
virtual std::vector< string > GetVariables2DXY() const
virtual void GetLatLonExtents(size_t ts, double lon_exts[2], double lat_exts[2]) const
long GetNumTimeSteps() const
virtual std::vector< string > GetVariables3D() const
virtual std::vector< string > GetVariables2DXZ() const
Wrapper for a collection of netCDF files.