rex.utilities.parse_keys.parse_slice

parse_slice(ds_slice)[source]

Parse dataset slice

Parameters:

ds_slice (tuple | int | slice | list) – Slice to extract from dataset

Returns:

ds_slice (tuple) – slice for axis (0, 1)