xbout.lazyload.LazyFileArray

xbout.lazyload.LazyFileArray#

class xbout.lazyload.LazyFileArray(filepath, varname, shape, dtype, info=False)[source]#

Bases: object

Presents a numpy-like interface that defers reads to HDF5 hyperslabs.

Parameters:
__init__(filepath, varname, shape, dtype, info=False)[source]#
filepath: str or Path

Full path to the file

varname: str

Name of the array to read

shape: tuple

The shape of the array in the file

dtype

Type of the elements in the array (e.g. numpy.float64)

info: bool

Print debugging information on read?

Parameters:

Methods

__init__(filepath, varname, shape, dtype[, info])

filepath: str or Path