org.dawb.gda.extensions.loaders
Class H5Utils

java.lang.Object
  extended by org.dawb.gda.extensions.loaders.H5Utils

public class H5Utils
extends java.lang.Object


Constructor Summary
H5Utils()
           
 
Method Summary
static Datatype getDatatype(uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset a)
          Determines the HDF5 Datatype for an abstract dataset.
static int getDataType(Datatype datatype)
           
static uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset getSet(java.lang.Object val, Dataset set)
          Gets a data set from the complete dims.
static uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset getSet(java.lang.Object val, long[] longShape, Dataset set)
          Used when dims are not the same as the entire set, for instance when doing a slice.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H5Utils

public H5Utils()
Method Detail

getDataType

public static int getDataType(Datatype datatype)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getSet

public static uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset getSet(java.lang.Object val,
                                                                            Dataset set)
                                                                     throws java.lang.Exception
Gets a data set from the complete dims.

Parameters:
val -
set -
Returns:
Throws:
java.lang.Exception

getSet

public static uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset getSet(java.lang.Object val,
                                                                            long[] longShape,
                                                                            Dataset set)
                                                                     throws java.lang.Exception
Used when dims are not the same as the entire set, for instance when doing a slice.

Parameters:
val -
longShape -
set -
Returns:
Throws:
java.lang.Exception

getDatatype

public static Datatype getDatatype(uk.ac.diamond.scisoft.analysis.dataset.AbstractDataset a)
                            throws java.lang.Exception
Determines the HDF5 Datatype for an abstract dataset.

Parameters:
a -
Returns:
Throws:
java.lang.Exception