foxes.core.Data.get_slice(variables, s, dim_map={}, name=None)[source]

Get a slice of data.

Parameters

variables: list of str

The variable list that corresponds to s

s: slice

The slice

dim_map: dict

Mapping from original to new dimensions. If not found, same dimensions are assumed.

name: str, optional

The name of the data object

Returns

data: Data

The new data object, containing slices