Documentation of 'visad.data.hdf5.hdf5objects.HDF5Dataspace' Java class
HDF5Dataspace
visad.data.hdf5.hdf5objects

Class HDF5Dataspace

  • All Implemented Interfaces:
    java.io.Serializable


    public class HDF5Dataspace
    extends HDF5Object

    This class provides provides a mechanism to describe the positions of the elements of a dataset.

    A dataspace describes the locations that dataset elements are located at. A dataspace is either a regular N-dimensional array of data points, called a simple dataspace, or a more general collection of data points organized in another manner, called a complex dataspace.

    For details of the HDF5 libraries, see the HDF5 Documentation at: http://hdf.ncsa.uiuc.edu/HDF5/doc/

    See Also:
    Serialized Form
    • Constructor Detail

      • HDF5Dataspace

        public HDF5Dataspace()
        Constructs an HDF5Dataspace
      • HDF5Dataspace

        public HDF5Dataspace(int space_type)
        Creates a new HDF5Dataspace
        Parameters:
        space_type - The type of dataspace to be created.
      • HDF5Dataspace

        public HDF5Dataspace(int rank,
                             long[] dims,
                             long[] maxdims)
        Creates a new HDF5Dataspace
        Parameters:
        rank - Number of dimensions of dataspace.
        dims - An array of the size of each dimension.
        maxdims - An array of the maximum size of each dimension.
    • Method Detail

      • init

        public void init()
                  throws ncsa.hdf.hdf5lib.exceptions.HDF5Exception
        initialize the HDF5Dataspace:
        1. open HDF5 library.
        2. Set up data ranks and dimensions.
        3. Set up start, stride and count.
        Overrides:
        init in class HDF5Object
        Throws:
        ncsa.hdf.hdf5lib.exceptions.HDF5Exception
      • select

        public void select(long[] start,
                           long[] stride,
                           long[] count)
                    throws ncsa.hdf.hdf5lib.exceptions.HDF5LibraryException,
                           java.lang.NullPointerException,
                           java.lang.IllegalArgumentException
        select count[] points starting at start[] with stride[]
        Parameters:
        start - the starting points.
        stride - the stride
        count - the number of points.
        Throws:
        ncsa.hdf.hdf5lib.exceptions.HDF5LibraryException
        java.lang.NullPointerException
        java.lang.IllegalArgumentException
      • getRank

        public int getRank()
        Returns the rank of the dataspace
      • getDims

        public long[] getDims()
        Returns the dimensions of the dataspace
      • getMaxdims

        public long[] getMaxdims()
        Returns the maximum dimensions of the dataspace
      • getCount

        public long[] getCount()
        Returns the selected counts of the data
      • toString

        public java.lang.String toString()
        Converts this object to a String representation.
        Overrides:
        toString in class HDF5Object
        Returns:
        a string representation of this object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.