public class HDF5Attribute extends HDF5Dataset
An HDF5 attribute is a small datasets attached to primary datasets as metadata information. Because attributes are intended to be small objects, large datasets intended as additional information for a primary dataset should be stored as supplemental datasets in a group with the primary dataset.
Attributes are not seperate objects in the file, they are always contained in the object header of the object they are attached to.
For details of the HDF5 libraries, see the HDF5 Documentation at: http://hdf.ncsa.uiuc.edu/HDF5/doc/
count, data, dataspace, datatype, dims, maxdims, member_names, rank
Constructor and Description |
---|
HDF5Attribute()
cosntruct an HDF5Attribute
|
HDF5Attribute(int loc_id,
int idx)
Opens an HDF5Attribute specified by its index.
|
HDF5Attribute(int loc_id,
String attr_name)
Opens an HDF5Attribute specified by its name
|
HDF5Attribute(int loc_id,
String attr_name,
int type_id,
int space_id,
int create_plist)
Creates a new HDF5Attribute
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
finalize() is called by the garbage collector on the object when garbage
collection determines that there are no more references to the object.
|
void |
init()
initialize the HDF5Attribute:
Set up datatype and dataspace.
|
convertUnsignedData, getCount, getData, getDataspace, getDatatype, getDims, getMaxdims, getRank, readData, readData, toString, writeData, writeData
getDescription, getID, getName, getShortName, getType, setID, setShortName, setType
public HDF5Attribute()
public HDF5Attribute(int loc_id, String attr_name, int type_id, int space_id, int create_plist)
loc_id
- The identifier of the object the attribute is attached to.attr_name
- Name of attribute to create.type_id
- The identifier of datatype for attribute.space_id
- The identifier of dataspace for attribute.create_plist
- The identifier of creation property list.public HDF5Attribute(int loc_id, String attr_name)
loc_id
- The identifier of the object the attribute is attached to.attr_name
- Name of attribute to create.public HDF5Attribute(int loc_id, int idx)
loc_id
- The identifier of the object the attribute is attached to.idx
- The index of the attribute to open.public void init() throws HDF5Exception
init
in class HDF5Dataset
HDF5Exception
protected void finalize() throws Throwable
finalize
in class HDF5Dataset
Throwable
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.