xdas.virtual.VirtualStack#
- class xdas.virtual.VirtualStack(sources=[], axis=0)[source]#
Lazy concatenation of multiple
VirtualSourceobjects along one axis.- Parameters:
sources (list of VirtualSource, optional) – Initial list of sources to stack. All sources must share the same dtype and shape on every axis other than axis.
axis (int, optional) – Concatenation axis. Defaults to
0.
Methods
__init__([sources, axis])append(source)Append source to the stack.
create_variable(file, name[, dims, dtype])Write this virtual array into file and register it as a named variable.
extend(sources)Extend the stack with an iterable of sources.
to_dataset(file_or_group, name)Write the stacked virtual array as an HDF5 virtual dataset.
Attributes
axisConcatenation axis index.
dtypeNumPy dtype shared by all sources in the stack.
emptyTrueif the array contains no elements.nbytesTotal number of bytes occupied by the array elements.
ndimNumber of dimensions.
shapeShape of the concatenated virtual array.
sizeTotal number of elements.
sourcesList of
VirtualSourceobjects in the stack.