|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.output.hdf5.HDFAttribute
public class HDFAttribute
Utility class for reading/writing HDF attributes
Constructor Summary | |
---|---|
HDFAttribute()
|
Method Summary | |
---|---|
static java.lang.Float |
readFloat(int dataSet,
java.lang.String attribute)
Read an HDF attribute float from the given data set. |
static java.lang.String |
readString(int dataSet,
java.lang.String attribute)
Read an HDF attribute string from the given data set |
static java.lang.String[] |
readStrings(int dataSet,
java.lang.String attribute)
Read an array of string attribute values to the named string attribute in the data set |
static java.lang.Long |
readULong(int dataSet,
java.lang.String attribute)
Read an HDF attribute unsigned long (64-bits) from the given data set. |
static long[] |
readULongs(int dataSet,
java.lang.String attribute)
Read an HDF attribute set of unsigned long (64-bits) values from the given data set. |
static void |
writeFloat(int dataSet,
java.lang.String name,
float value)
Write an HDF attribute float to the given data set. |
static void |
writeString(int dataSet,
java.lang.String name,
java.lang.String value)
Write a string attribute value to the named string attribute in the data set |
static void |
writeStrings(int dataSet,
java.lang.String name,
java.lang.String[] values)
Write an array of string attribute values to the named string attribute in the data set |
static void |
writeULong(int dataSet,
java.lang.String name,
long value)
Write to an HDF attribute unsigned long (64-bits) to the given data set. |
static void |
writeULongs(int dataSet,
java.lang.String name,
long[] values)
Write to an HDF attribute a set of unsigned long (64-bits) values to the given data set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HDFAttribute()
Method Detail |
---|
public static java.lang.String readString(int dataSet, java.lang.String attribute) throws RtStpsException
dataSet
- an descriptor to the open data setattribute
- the name of the attribute in question that should be in the data set
RtStpsException
- wraps any HDF library exceptionpublic static void writeString(int dataSet, java.lang.String name, java.lang.String value) throws RtStpsException
dataSet
- a descriptor to the open data setname
- the name of the attribute in question that should be in the data setvalue
- the value of the attribute in question that should be in the data set
RtStpsException
- wraps any HDF library exceptionpublic static void writeStrings(int dataSet, java.lang.String name, java.lang.String[] values) throws RtStpsException
dataSet
- a descriptor to the open data setname
- the name of the attribute in question that should be in the data setvalues
- an array of values of the attribute in question that should be in the data set
RtStpsException
public static java.lang.String[] readStrings(int dataSet, java.lang.String attribute) throws RtStpsException
dataSet
- a descriptor to the open data setattribute
- the name of the attribute in question that should be in the data set
RtStpsException
public static java.lang.Long readULong(int dataSet, java.lang.String attribute) throws RtStpsException
dataSet
- an descriptor to the open data setattribute
- the name of the attribute in question that should be in the data set
RtStpsException
- wraps any HDF library exceptionpublic static void writeULong(int dataSet, java.lang.String name, long value) throws RtStpsException
H5T_NATIVE_ULLONG
HDF data type.
dataSet
- an descriptor to the open data setname
- the name of the attribute in question that should be in the data setvalue
- a long containing the attribute's value
RtStpsException
- wraps any HDF library exceptionpublic static long[] readULongs(int dataSet, java.lang.String attribute) throws RtStpsException
H5T_STD_U64BE
HDF data type.
This contradicts the data-type in writeULong method above but seems to work.
dataSet
- an descriptor to the open data setattribute
- the name of the attribute in question that should be in the data set
RtStpsException
- wraps any HDF library exceptionpublic static void writeULongs(int dataSet, java.lang.String name, long[] values) throws RtStpsException
H5T_STD_U64BE
HDF data type.
dataSet
- an descriptor to the open data setname
- the name of the attribute in question that should be in the data setvalues
- an array of long containing the attribute's value
RtStpsException
- wraps any HDF library exceptionpublic static java.lang.Float readFloat(int dataSet, java.lang.String attribute) throws RtStpsException
H5T_NATIVE_ULLONG
date type, and then byte converted to a Java float.
dataSet
- an descriptor to the open data setattribute
- the name of the attribute in question that should be in the data set
RtStpsException
- wraps any HDF library exceptionpublic static void writeFloat(int dataSet, java.lang.String name, float value) throws RtStpsException
H5T_NATIVE_ULLONG
date type.
dataSet
- an descriptor to the open data setname
- the name of the attribute in question that should be in the data set
RtStpsException
- wraps any HDF library exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |