Logo Search packages:      
Sourcecode: jhdf version File versions  Download package

static synchronized int ncsa::hdf::hdf5lib::H5::H5Sselect_elements ( int  space_id,
int  op,
int  num_elements,
long  coord2D[][] 
) throws HDF5Exception, HDF5LibraryException, NullPointerException [inline, static]

H5Sselect_elements selects array elements to be included in the selection for the space_id dataspace.

space_id Identifier of the dataspace.
op operator specifying how the new selection is combined.
num_elements Number of elements to be selected.
coord2D A 2-dimensional array specifying the coordinates of the elements.
a non-negative value if successful
HDF5Exception - Error in the data conversion
HDF5LibraryException - Error from the HDF-5 Library.
NullPointerException - cord array is

Definition at line 2895 of file H5.java.

References ncsa::hdf::hdf5lib::HDFArray::byteify(), and H5Sselect_elements().

        if (coord2D == null) {
            return -1;

        HDFArray theArray = new HDFArray(coord2D);
        byte[] coord = theArray.byteify();

        int retVal = H5Sselect_elements(space_id, op,
                num_elements, coord);

        coord = null;
        theArray = null;
        return retVal;

Generated by  Doxygen 1.6.0   Back to index