Package org.neuroml.model.util.hdf5
Class Hdf5Utils
java.lang.Object
org.neuroml.model.util.hdf5.Hdf5Utils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addStringAttribute
(ncsa.hdf.object.Group group, String name, String value, ncsa.hdf.object.h5.H5File h5File) static void
close
(ncsa.hdf.object.h5.H5File h5File) static ncsa.hdf.object.h5.H5File
createH5file
(File file) static String
getFirstStringValAttr
(ArrayList<ncsa.hdf.object.Attribute> attrs, String attrName) static ncsa.hdf.object.Group
getRootGroup
(ncsa.hdf.object.h5.H5File h5File) static ncsa.hdf.object.Attribute
getSimpleAttr
(String name, String value, ncsa.hdf.object.h5.H5File h5File) static void
static void
open
(ncsa.hdf.object.h5.H5File h5File) static ncsa.hdf.object.h5.H5File
openForRead
(File f) static ncsa.hdf.object.h5.H5File
openH5file
(File file) static float[][]
parse2Ddataset
(ncsa.hdf.object.Dataset d) static String
parseAttribute
(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 void
setVerbose
(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:
IOException
Hdf5Exception
-