Package hdf.hdflib
Class HDFArray
java.lang.Object
hdf.hdflib.HDFArray
This is a class for handling multidimensional arrays for HDF.
The purpose is to allow the storage and retrieval of arbitrary array types containing scientific data.
The methods support the conversion of an array to and from Java to a one-dimensional array of bytes suitable for I/O by the C library.
This class heavily uses the HDFNativeData class to convert between Java and C representations.
-
Constructor Details
-
HDFArray
- Throws:
HDFException
-
-
Method Details
-
emptyBytes
- Returns:
- the allocated one-dimensional array of bytes sufficient to store the array.
- Throws:
HDFException
- thrown for errors: object is not allocated: HDFJavaException
-
byteify
- Returns:
- conversion of a Java array of numbers to a one-dimensional array of bytes in correct native order.
- Throws:
HDFException
- thrown for errors: object is not array: HDFJavaException
-
arrayify
- Parameters:
bytes
- a one-dimensional array of numbers- Returns:
- convert it to a java array of the shape and size passed to the constructor.
- Throws:
HDFException
- thrown for errors: object not an array: HDFJavaException
-