tiled.readers.array.ArrayAdapter¶
- class tiled.readers.array.ArrayAdapter(data, metadata=None)[source]¶
Wrap an array-like in a “Reader”.
Examples
Wrap a dask array.
>>> ArrayAdapter(dask.array.from_array(numpy.random.random((100, 100)), chunks=(100, 50)))
Wrap a numpy array. Internally, it will be automatically divided into chunks by dask.
>>> ArrayAdapter.from_array(numpy.random.random((100, 100)))
Methods
__init__
(data[, metadata])from_array
(data[, metadata])macrostructure
()Structures of the layout of blocks of this array
microstructure
()Internal structure of a block of this array --- i.e. its data type.
read
([slice])read_block
(block[, slice])Attributes
metadata
structure_family