tinfo.base = calcNCtype(mdt.base); return tinfo;
public String toString() { StringBuilder buff = new StringBuilder(); buff.append("dataPos=").append(dataPos).append(" datatype=").append(typeInfo); if (isChunked) { buff.append(" isChunked ("); for (int size : storageSize) buff.append(size).append(" "); buff.append(")"); } if (mfp != null) buff.append(" hasFilter"); buff.append("; // ").append(extraInfo()); if (null != facade) buff.append("\n").append(facade); return buff.toString(); }
private Variable makeVariable(ucar.nc2.Group ncGroup, DataObjectFacade facade) throws IOException { Vinfo vinfo = new Vinfo(facade); if (vinfo.getNCDataType() == null) { debugOut.println("SKIPPING DataType= " + vinfo.typeInfo.hdfType + " for variable " + facade.name); return null; Object fillValue = vinfo.getFillValueNonDefault(); if (fillValue != null) { Object defFillValue = vinfo.getFillValueDefault(vinfo.typeInfo.dataType); if (!fillValue.equals(defFillValue)) fillAttribute = new Attribute(CDM.FILL_VALUE, (Number) fillValue, vinfo.typeInfo.unsigned); vinfo.setOwner(v); if ((vinfo.typeInfo.hdfType == 7) && warnings) debugOut.println("WARN: Variable " + facade.name + " is a Reference type");
private Variable makeVariable(ucar.nc2.Group ncGroup, DataObjectFacade facade) throws IOException { Vinfo vinfo = new Vinfo(facade); if (vinfo.getNCDataType() == null) { log.debug("SKIPPING DataType= " + vinfo.typeInfo.hdfType + " for variable " + facade.name); return null; Object fillValue = vinfo.getFillValueNonDefault(); if (fillValue != null) { Object defFillValue = N3iosp.getFillValueDefault(vinfo.typeInfo.dataType); vinfo.setOwner(v); if ((vinfo.typeInfo.hdfType == 7) && warnings) { log.warn(" Variable " + facade.name + " is a Reference type");
private Variable makeVariable(ucar.nc2.Group ncGroup, DataObjectFacade facade) throws IOException { Vinfo vinfo = new Vinfo(facade); if (vinfo.getNCDataType() == null) { debugOut.println("SKIPPING DataType= " + vinfo.typeInfo.hdfType + " for variable " + facade.name); return null; Object fillValue = vinfo.getFillValueNonDefault(); if (fillValue != null) { Object defFillValue = vinfo.getFillValueDefault(vinfo.typeInfo.dataType); if (!fillValue.equals(defFillValue)) fillAttribute = new Attribute(CDM.FILL_VALUE, (Number) fillValue); vinfo.setOwner(v); if ((vinfo.typeInfo.hdfType == 7) && warnings) debugOut.println("WARN: Variable " + facade.name + " is a Reference type");
tinfo.base = calcNCtype(mdt.base);
DataType dt = vinfo.getNCDataType(); if (dt == null) return false; v.setDataType(dt);
Vinfo vinfo = new Vinfo(matt.mdt, matt.mds, matt.dataPos); ArrayStructure attData = (ArrayStructure) readAttributeData(matt, vinfo, DataType.STRUCTURE);
Object pa = IospHelper.makePrimitiveArray((int) wantSection.computeSize(), dataType, vinfo.getFillValue()); if (dataType == DataType.CHAR) pa = IospHelper.convertByteToChar((byte[]) pa); data = readFilteredStringData((LayoutBB) layout); } else{ data = IospHelper.readDataFill((LayoutBB) layout, v2.getDataType(), vinfo.getFillValue()); Object fillValue = vinfo.getFillValue(); int endian = vinfo.typeInfo.endian;
Vinfo vinfo = new Vinfo(matt.mdt, matt.mds, matt.dataPos); ArrayStructure attData = (ArrayStructure) readAttributeData(matt, vinfo, DataType.STRUCTURE);
tinfo.base = calcNCtype(mdt.base); return tinfo;
Object pa = IospHelper.makePrimitiveArray((int) wantSection.computeSize(), dataType, vinfo.getFillValue()); if (dataType == DataType.CHAR) pa = IospHelper.convertByteToChar((byte[]) pa); ByteOrder bo = (vinfo.typeInfo.endian == 0) ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN; layout = new H5tiledLayoutBB(v2, wantSection, raf, vinfo.mfp.getFilters(), bo); data = IospHelper.readDataFill((LayoutBB) layout, v2.getDataType(), vinfo.getFillValue()); Object fillValue = vinfo.getFillValue(); int endian = vinfo.typeInfo.endian; readDtype = vinfo.mdt.timeType; elemSize = readDtype.getSize(); fillValue = vinfo.getFillValueDefault(readDtype); readDtype = baseInfo.dataType; elemSize = readDtype.getSize(); fillValue = vinfo.getFillValueDefault(readDtype); endian = baseInfo.endian;
DataType dt = vinfo.getNCDataType(); if (dt == null) return false; v.setDataType(dt);
DataType dt = vinfo.getNCDataType(); if (dt == null) return false; v.setDataType(dt);
Object pa = IospHelper.makePrimitiveArray((int) wantSection.computeSize(), dataType, vinfo.getFillValue()); if (dataType == DataType.CHAR) pa = IospHelper.convertByteToChar((byte[]) pa); ByteOrder bo = (vinfo.typeInfo.endian == 0) ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN; layout = new H5tiledLayoutBB(v2, wantSection, raf, vinfo.mfp.getFilters(), bo); data = IospHelper.readDataFill((LayoutBB) layout, v2.getDataType(), vinfo.getFillValue()); Object fillValue = vinfo.getFillValue(); int endian = vinfo.typeInfo.endian; readDtype = vinfo.mdt.timeType; elemSize = readDtype.getSize(); fillValue = vinfo.getFillValueDefault(readDtype); readDtype = baseInfo.dataType; elemSize = readDtype.getSize(); fillValue = vinfo.getFillValueDefault(readDtype); endian = baseInfo.endian;
Vinfo vinfo = new Vinfo(matt.mdt, matt.mds, matt.dataPos); ArrayStructure attData = (ArrayStructure) readAttributeData(matt, vinfo, DataType.STRUCTURE);
private Attribute makeAttribute(MessageAttribute matt) throws IOException { Vinfo vinfo = new Vinfo(matt.mdt, matt.mds, matt.dataPos); DataType dtype = vinfo.getNCDataType();
private Attribute makeAttribute(MessageAttribute matt) throws IOException { Vinfo vinfo = new Vinfo(matt.mdt, matt.mds, matt.dataPos); DataType dtype = vinfo.getNCDataType();
/** * Constructor * * @param facade DataObjectFacade: always has an mdt and an msl * @throws java.io.IOException on read error */ Vinfo(DataObjectFacade facade) throws IOException { this.facade = facade; // LOOK if compact, do not use fileOffset this.dataPos = (facade.dobj.msl.type == 0) ? facade.dobj.msl.dataAddress : getFileOffset(facade.dobj.msl.dataAddress); this.mdt = facade.dobj.mdt; this.mds = facade.dobj.mds; this.mfp = facade.dobj.mfp; isvlen = this.mdt.isVlen(); if (!facade.dobj.mdt.isOK && warnings) { log.debug("WARNING HDF5 file " + ncfile.getLocation() + " not handling " + facade.dobj.mdt); return; // not a supported datatype } this.isChunked = (facade.dobj.msl.type == 2); if (isChunked) { this.storageSize = facade.dobj.msl.chunkSize; } else { this.storageSize = facade.dobj.mds.dimLength; } // figure out the data type this.typeInfo = calcNCtype(facade.dobj.mdt); }
/** * Constructor * * @param facade DataObjectFacade: always has an mdt and an msl * @throws java.io.IOException on read error */ Vinfo(DataObjectFacade facade) throws IOException { this.facade = facade; // LOOK if compact, do not use fileOffset this.dataPos = (facade.dobj.msl.type == 0) ? facade.dobj.msl.dataAddress : getFileOffset(facade.dobj.msl.dataAddress); this.mdt = facade.dobj.mdt; this.mds = facade.dobj.mds; this.mfp = facade.dobj.mfp; isvlen = this.mdt.isVlen(); if (!facade.dobj.mdt.isOK && warnings) { debugOut.println("WARNING HDF5 file " + ncfile.getLocation() + " not handling " + facade.dobj.mdt); return; // not a supported datatype } this.isChunked = (facade.dobj.msl.type == 2); if (isChunked) { this.storageSize = facade.dobj.msl.chunkSize; } else { this.storageSize = facade.dobj.mds.dimLength; } // figure out the data type this.typeInfo = calcNCtype(facade.dobj.mdt); }