tiled.readers.hdf5.HDF5Reader¶
- class tiled.readers.hdf5.HDF5Reader(node, access_policy=None, authenticated_identity=None)[source]¶
Read an HDF5 file or a group within one.
This map the structure of an HDF5 file onto a “Tree” of array structures.
Examples
From the root node of a file given a filepath
>>> import h5py >>> HDF5Reader.from_file("path/to/file.h5")
From the root node of a file given an h5py.File object
>>> import h5py >>> file = h5py.File("path/to/file.h5") >>> HDF5Reader.from_file(file)
From a group within a file
>>> import h5py >>> file = h5py.File("path/to/file.h5") >>> HDF5Reader(file["some_group']["some_sub_group"])
Methods
__init__
(node[, access_policy, ...])authenticated_as
(identity)from_file
(file)get
(k[,d])items
()keys
()search
(query)Return a Tree with a subset of the mapping.
values
()Attributes
access_policy
authenticated_identity
items_indexer
keys_indexer
metadata
values_indexer