public void testUnsigned() throws IOException, InvalidRangeException {
String filename = testDir + "MOD021KM.A2004328.1735.004.2004329164007.hdf";
NetcdfFile ncfile = NetcdfFile.open(filename);
String vname = "/MODIS_SWATH_Type_L1B/Data Fields/EV_250_Aggr1km_RefSB";
Variable v = ncfile.findVariable(vname);
assert v != null : filename+" "+vname;
Array data = v.read();
System.out.printf(" sum = %f%n", MAMath.sumDouble(data));
double sum2 = 0;
double sum3 = 0;
int[] varShape = v.getShape();
int[] origin = new int[3];
int[] size = new int[]{1, varShape[1], varShape[2]};
for (int i = 0; i < varShape[0]; i++) {
origin[0] = i;
Array data2D = v.read(origin, size);
double sum = MAMath.sumDouble(data2D);
System.out.printf(" %d sum3D = %f%n", i, sum);
sum2 += sum;