private Attribute readOpaqueAttValues(int grpid, int varid, String attname, int len, UserType userType) throws IOException {
int total = len * userType.size;
ByteBuffer bb = ByteBuffer.allocate(total);
int ret = nc4.nc_get_att(grpid, varid, attname, bb);
if (ret != 0) throw new IOException(nc4.nc_strerror(ret));
return new Attribute(attname, Array.factory(DataType.BYTE, new int[] {total}, bb.array()));
}
/////////////////////////////////////////////////////////////////////////////
private void makeVariables(int grpid, Group g) throws IOException {