Package org.neuroml.model.util.hdf5
Class Hdf5Utils
java.lang.Object
org.neuroml.model.util.hdf5.Hdf5Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddStringAttribute(ncsa.hdf.object.Group group, String name, String value, ncsa.hdf.object.h5.H5File h5File) static voidclose(ncsa.hdf.object.h5.H5File h5File) static ncsa.hdf.object.h5.H5FilecreateH5file(File file) static StringgetFirstStringValAttr(ArrayList<ncsa.hdf.object.Attribute> attrs, String attrName) static ncsa.hdf.object.GroupgetRootGroup(ncsa.hdf.object.h5.H5File h5File) static ncsa.hdf.object.AttributegetSimpleAttr(String name, String value, ncsa.hdf.object.h5.H5File h5File) static voidstatic voidopen(ncsa.hdf.object.h5.H5File h5File) static ncsa.hdf.object.h5.H5FileopenForRead(File f) static ncsa.hdf.object.h5.H5FileopenH5file(File file) static float[][]parse2Ddataset(ncsa.hdf.object.Dataset d) static StringparseAttribute(ncsa.hdf.object.Attribute a, String indent, Properties p, boolean returnOnlyValueString) static ArrayList<ncsa.hdf.object.Attribute>parseDatasetForAttributes(ncsa.hdf.object.Dataset d) static ArrayList<ncsa.hdf.object.Attribute>parseGroupForAttributes(ncsa.hdf.object.Group g) static voidsetVerbose(boolean v)
-
Constructor Details
-
Hdf5Utils
public Hdf5Utils()
-
-
Method Details
-
setVerbose
public static void setVerbose(boolean v) -
getSimpleAttr
public static ncsa.hdf.object.Attribute getSimpleAttr(String name, String value, ncsa.hdf.object.h5.H5File h5File) throws Exception - Throws:
Exception
-
addStringAttribute
public static void addStringAttribute(ncsa.hdf.object.Group group, String name, String value, ncsa.hdf.object.h5.H5File h5File) throws Exception - Throws:
Exception
-
createH5file
- Throws:
Hdf5Exception
-
openH5file
- Throws:
Hdf5Exception
-
open
- Throws:
Hdf5Exception
-
openForRead
- Throws:
Hdf5Exception
-
close
- Throws:
Hdf5Exception
-
getFirstStringValAttr
-
parseGroupForAttributes
public static ArrayList<ncsa.hdf.object.Attribute> parseGroupForAttributes(ncsa.hdf.object.Group g) throws Hdf5Exception - Throws:
Hdf5Exception
-
parseDatasetForAttributes
public static ArrayList<ncsa.hdf.object.Attribute> parseDatasetForAttributes(ncsa.hdf.object.Dataset d) throws Hdf5Exception - Throws:
Hdf5Exception
-
getRootGroup
public static ncsa.hdf.object.Group getRootGroup(ncsa.hdf.object.h5.H5File h5File) throws Hdf5Exception - Throws:
Hdf5Exception
-
parseAttribute
public static String parseAttribute(ncsa.hdf.object.Attribute a, String indent, Properties p, boolean returnOnlyValueString) -
parse2Ddataset
- Throws:
Hdf5Exception
-
main
- Throws:
IOExceptionHdf5Exception
-