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/
Constructor and Description |
---|
HDF5Dataspace()
Constructs an HDF5Dataspace
|
HDF5Dataspace(int space_type)
Creates a new HDF5Dataspace
|
HDF5Dataspace(int rank,
long[] dims,
long[] maxdims)
Creates a new HDF5Dataspace
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
finalize() is called by the garbage collector on the object when garbage
collection determines that there are no more references to the object.
|
long[] |
getCount()
Returns the selected counts of the data
|
long[] |
getDims()
Returns the dimensions of the dataspace
|
long[] |
getMaxdims()
Returns the maximum dimensions of the dataspace
|
int |
getRank()
Returns the rank of the dataspace
|
void |
init()
initialize the HDF5Dataspace:
open HDF5 library.
|
void |
select(long[] start,
long[] stride,
long[] count)
select count[] points starting at start[] with stride[]
|
String |
toString()
Converts this object to a String representation.
|
getDescription, getID, getName, getShortName, getType, setID, setShortName, setType
public HDF5Dataspace()
public HDF5Dataspace(int space_type)
space_type
- The type of dataspace to be created.public HDF5Dataspace(int rank, long[] dims, long[] maxdims)
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.public void init() throws HDF5Exception
init
in class HDF5Object
HDF5Exception
public void select(long[] start, long[] stride, long[] count) throws HDF5LibraryException, NullPointerException, IllegalArgumentException
start
- the starting points.stride
- the stridecount
- the number of points.HDF5LibraryException
NullPointerException
IllegalArgumentException
public int getRank()
public long[] getDims()
public long[] getMaxdims()
public long[] getCount()
public String toString()
toString
in class HDF5Object
protected void finalize() throws Throwable
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.