/** * Constructor, used for reading attributes * * @param mdt datatype * @param mds dataspace * @param dataPos start of data in file * @throws java.io.IOException on read error */ Vinfo(MessageDatatype mdt, MessageDataspace mds, long dataPos) throws IOException { this.mdt = mdt; this.mds = mds; this.dataPos = dataPos; if (!mdt.isOK && warnings) { debugOut.println("WARNING HDF5 file " + ncfile.getLocation() + " not handling " + mdt); return; // not a supported datatype } // figure out the data type //this.hdfType = mdt.type; this.typeInfo = calcNCtype(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; this.dataPos = getFileOffset(facade.dobj.msl.dataAddress); this.mdt = facade.dobj.mdt; this.mds = facade.dobj.mds; this.mfp = facade.dobj.mfp; 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); }
/** * Constructor, used for reading attributes * * @param mdt datatype * @param mds dataspace * @param dataPos start of data in file * @throws java.io.IOException on read error */ Vinfo(MessageDatatype mdt, MessageDataspace mds, long dataPos) throws IOException { this.mdt = mdt; this.mds = mds; this.dataPos = dataPos; if (!mdt.isOK && warnings) { debugOut.println("WARNING HDF5 file " + ncfile.getLocation() + " not handling " + mdt); return; // not a supported datatype } isvlen = this.mdt.isVlen(); // figure out the data type //this.hdfType = mdt.type; this.typeInfo = calcNCtype(mdt); }
tinfo.base = calcNCtype(mdt.base);
tinfo.base = calcNCtype(mdt.base); return tinfo;
tinfo.base = calcNCtype(mdt.base); return tinfo;
/** * 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); }
/** * Constructor, used for reading attributes * * @param mdt datatype * @param mds dataspace * @param dataPos start of data in file * @throws java.io.IOException on read error */ Vinfo(MessageDatatype mdt, MessageDataspace mds, long dataPos) throws IOException { this.mdt = mdt; this.mds = mds; this.dataPos = dataPos; if (!mdt.isOK && warnings) { log.debug("WARNING HDF5 file " + ncfile.getLocation() + " not handling " + mdt); return; // not a supported datatype } isvlen = this.mdt.isVlen(); // figure out the data type //this.hdfType = mdt.type; this.typeInfo = calcNCtype(mdt); }