get_window_output#

async NDSlicer.get_window_output(indices)[source]#

Take the data slice at the given indices and apply the window functions.

Parameters:

indices (dict[str, Any]) – Reference-space value for each slider dim, ex: {"time": 46.397, "depth": 23.24}. Must provide a value for every slider dim.

Returns:

Data slice with the window funcs applied and the slider dims, which are of size 1 after windowing, squeezed out. The remaining dims are the spatial dims, in the order they appear in dims, not in display_dims display order. Subclasses transpose into display order in get().

Return type:

ArrayProtocol

Raises:

ValueError – If the number of dims left after squeezing does not equal the number of spatial dims.