visad.data.hdf5.hdf5objects
Class HDF5Dataspace
- java.lang.Object
-
- visad.data.hdf5.hdf5objects.HDF5Object
-
- visad.data.hdf5.hdf5objects.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 Summary
Constructors Constructor and Description HDF5Dataspace()Constructs an HDF5DataspaceHDF5Dataspace(int space_type)Creates a new HDF5DataspaceHDF5Dataspace(int rank, long[] dims, long[] maxdims)Creates a new HDF5Dataspace
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description long[]getCount()Returns the selected counts of the datalong[]getDims()Returns the dimensions of the dataspacelong[]getMaxdims()Returns the maximum dimensions of the dataspaceintgetRank()Returns the rank of the dataspacevoidinit()initialize the HDF5Dataspace: open HDF5 library.voidselect(long[] start, long[] stride, long[] count)select count[] points starting at start[] with stride[]java.lang.StringtoString()Converts this object to a String representation.-
Methods inherited from class visad.data.hdf5.hdf5objects.HDF5Object
getDescription, getID, getName, getShortName, getType, setID, setShortName, setType
-
-
-
-
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.HDF5Exceptioninitialize the HDF5Dataspace:- open HDF5 library.
- Set up data ranks and dimensions.
- Set up start, stride and count.
- Overrides:
initin classHDF5Object- 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.IllegalArgumentExceptionselect count[] points starting at start[] with stride[]- Parameters:
start- the starting points.stride- the stridecount- the number of points.- Throws:
ncsa.hdf.hdf5lib.exceptions.HDF5LibraryExceptionjava.lang.NullPointerExceptionjava.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:
toStringin classHDF5Object- Returns:
- a string representation of this object
-
-
DMelt 3.0 © DataMelt by jWork.ORG