public float[][][] Read3DFloatArray(string name) { Variable var = _file.findVariable(name); ucar.ma2.Array arr = var.read(); int[] shape = arr.getShape(); float[][][] ret = new float[shape[0]][][]; for (int t = 0, i = 0; t < shape[0]; t++) { ret[t] = new float[shape[1]][]; for (int y = 0; y < shape[1]; y++) { ret[t][y] = new float[shape[2]]; for (int x = 0; x < shape[2]; x++, i++) { ret[t][y][x] = arr.getFloat(i); } } } return(ret); }