Description Usage Arguments Details Value Author(s) References See Also Examples
The Object interface, H5O, functions manipulate objects in an HDF5 file. This interface is designed to be used in conjunction with the Links interface (H5L).
1 2 3 4 | H5Oopen (h5loc, name)
H5Oclose (h5obj)
H5Oget_num_attrs(h5obj)
H5Oget_num_attrs_by_name(h5loc, name)
|
h5obj |
An object of class |
h5loc |
An object of class |
name |
The name of the link to be checked. |
Interface to the HDF5 C-library libhdf5. See https://portal.hdfgroup.org/display/HDF5/Objects for further details.
H5Oopen
opens an object (a file, group, or dataset) and returns an object of class H5IdComponent
. H5Oclose
closed the object again. H5Oget_num_attrs
and H5Oget_num_attrs_by_name
return the number of attributes of an object.
Bernd Fischer
https://portal.hdfgroup.org/display/HDF5
rhdf5
1 2 3 4 5 6 7 8 9 10 11 12 | # create an hdf5 file and write something
h5createFile("ex_H5O.h5")
h5createGroup("ex_H5O.h5","foo")
B = array(seq(0.1,2.0,by=0.1),dim=c(5,2,2))
h5write(B, "ex_H5O.h5","foo/B")
# reopen file and dataset and get object info
fid <- H5Fopen("ex_H5O.h5")
oid = H5Oopen(fid, "foo")
H5Oget_num_attrs(oid)
H5Oclose(oid)
H5Fclose(fid)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.