read_array

method of dascore.io.dasdae.core.DASDAEV1 source

read_array(
    self ,
    resource: H5Reader ,
    windows: collections.abc.Sequence[tuple[tuple[int | None[int, None], int | None[int, None]], <class ’slice, None]] = (),
    key: str = ““,
)-> ‘np.ndarray’

Slice one patch’s data dataset directly.

Only the requested hyperslab leaves the file; the group’s _dims, patch attrs, and coordinates are never read. See FiberIO.read_array for the window contract. source_patch_key is the waveform group name scan reports; a positional index is not accepted, because DASDAE never synthesizes one.