read_array

method of dascore.io.netcdf.core.NetCDFCFV18 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 the keyed payload variable through xarray.

The selection goes through xarray rather than the stored dataset so CF decoding (scaling, offsets, fill values) applies exactly as it does in read.