H5Dopen | R Documentation |
Open an existing HDF5 dataset
H5Dopen(h5loc, name, dapl = NULL)
h5loc |
An object of class H5IdComponent representing a H5 location identifier (file or group). |
name |
Name of the dataset to open. |
dapl |
An object of class H5IdComponent representing a H5 dataset access property list. |
An object of class H5IdComponent
representing the opened dataset.
To prevent memory leaks this must be closed with a call to H5Dclose()
when no longer needed.
h5file <- tempfile(fileext = ".h5")
h5createFile( h5file )
h5createDataset( h5file, dataset = "A", dims = 10)
fid <- H5Fopen( h5file )
did <- H5Dopen( h5loc = fid, name = "A")
did
## rember to close open handles
H5Dclose( did )
H5Fclose( fid )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.