24 static const int NX = 6;
25 static const int NY = 12;
28 static const int NC_ERR = 2;
38 NcFile dataFile(
"simple_xy.nc", NcFile::read);
42 if(data.
isNull())
return NC_ERR;
46 for (
int i = 0; i < NX; i++)
47 for (
int j = 0; j < NY; j++)
48 if (dataIn[i][j] != i * NY + j)
58 cout<<
"FAILURE*************************************"<<endl;
bool isNull() const
Returns true if this object variable is not defined.
void getVar(void *dataValues) const
This is an overloaded member function, provided for convenience.
Base object is thrown if a netCDF exception is encountered.
Class represents a netCDF variable.
Class represents a netCDF root group.