xdas.virtual#
VirtualArray#
Base class for all virtual array types.
Attributes
Tuple of array dimensions (abstract — must be overridden). |
|
NumPy dtype of the array elements (abstract — must be overridden). |
|
Number of dimensions. |
|
Total number of elements. |
|
Total number of bytes occupied by the array elements. |
|
|
Methods
|
Write this virtual array as an HDF5 dataset (abstract — must be overridden). |
VirtualSource#
A lazy pointer to a single dataset inside an HDF5/NetCDF4 file.
Constructor
|
A lazy array object pointing toward a netCDF4/HDF5 file. |
Attributes
Underlying |
|
Shape of the selected region of the source dataset. |
|
NumPy dtype of the source dataset. |
|
Number of dimensions. |
|
|
Total number of elements. |
Total number of bytes occupied by the array elements. |
|
|
|
Methods
|
Write this source as an HDF5 virtual dataset in file_or_group. |
VirtualStack#
A lazy concatenation of multiple VirtualSource objects along one axis.
Constructor
|
Lazy concatenation of multiple |
Attributes
|
List of |
|
Concatenation axis index. |
|
Shape of the concatenated virtual array. |
|
NumPy dtype shared by all sources in the stack. |
|
Number of dimensions. |
|
Total number of elements. |
|
Total number of bytes occupied by the array elements. |
|
|
Methods
|
Append source to the stack. |
|
Extend the stack with an iterable of sources. |
|
Write the stacked virtual array as an HDF5 virtual dataset. |
VirtualLayout#
Internal HDF5 virtual dataset layout object.
|
A lazy array layout pointing toward multiple netCDF4/HDF5 files. |
Attributes
Shape of the layout after any lazy selections. |
|
NumPy dtype of the layout. |
Methods
|
Write the layout as an HDF5 virtual dataset in file_or_group. |
Selection#
|
Used to perform lazy selection. |
Attributes
Shape of the array after all selections are applied. |
|
Number of dimensions remaining after selections. |
Methods
Return a tuple of slices/ints that materialises the accumulated selections. |