Package edu.ucar.ral.nujan.hdf

Examples of edu.ucar.ral.nujan.hdf.HdfGroup


        HDF5Dataset dataset;
        String datasetName;
        int datasetType;
        Object datasetFillValue;
        int[] datasetDims;
        HdfGroup datasetWriter;
        int fieldLength;

        for (Iterator<Entry<String, HDF5Dataset>> iter =
                group.iterateDatasets(); iter.hasNext();) {
            datasetEntry = iter.next();
View Full Code Here


    private static void writeDatasetsData(
            Map<HDF5Dataset, HdfGroup> datasetRegistry) throws IOException {
        Object datasetData;
        int[] datasetDims;
        HdfGroup datasetWriter;
        int[] startIxs;
        for (Entry<HDF5Dataset, HdfGroup> entry : datasetRegistry.entrySet()) {
            datasetData = entry.getKey().getData();
            datasetDims = entry.getKey().getDimensions();
            datasetWriter = entry.getValue();

            startIxs = datasetDims.clone();
            Arrays.fill(startIxs, 0);

            try {
                datasetWriter.writeData(startIxs, datasetData, false);
            } catch (HdfException e) {
                throw new IOException(e);
            }
        }
    }
View Full Code Here

        // Process subgroups recursively
        Entry<String, HDF5Group> subgroupEntry;
        String subgroupName;
        HDF5Group subgroup;
        HdfGroup subgroupWriter;

        for (Iterator<Entry<String, HDF5Group>> iter =
                group.iterateSubgroups(); iter.hasNext();) {
            subgroupEntry = iter.next();
            subgroupName = subgroupEntry.getKey();
View Full Code Here

TOP

Related Classes of edu.ucar.ral.nujan.hdf.HdfGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.