cdms2.variable

reverseSlice(s, size)[source]

For ‘reversed’ slices (slices with negative stride), return an equivalent slice with positive step. For positive strides, just return the slice unchanged.