read_dataset_array

function of dascore.io.netcdf.utils source

read_dataset_array(
    dataset ,
    windows: collections.abc.Sequence[tuple[tuple[int | None[int, None], int | None[int, None]], <class ’slice, None]] ,
    key: str ,
    where: str ,
)

Slice the payload variable of an open xarray dataset.

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