problems when using the netcdf4 to open a netcdf and read a variable whose dimension isn't 1

Dec 9, 2012 at 12:13 PM

Thank for your work on netcdf4,

I succeed reading a variable whose dimension is 1.

For example:

int[] value = new int[3135];           

int valueId;

nc_open(filePath, CreateMode.NC_NOWRITE, out p);           

nc_inq_varid(p, checkedItems[i], out valueId);               

nc_get_var_int(p, valueId, value);

But when using the netcdf4 to read a variable whose dimension isn't 1,unfortunately,I have no idea to read,could you please give me a hand?