SciTools/iris — pull request #1229 by dkillick (2014-07-09 12:41:48+00:00)
Title: Added cube method slices_over

Added a new method to `iris.cube.Cube` called `slices_over`. This is very similar to `cube.slices` but has near opposite functionality. So while the slice references in `cube.slices` are references to the dimensions returned in the subcubes, in `cube.slices_over` the slice references are references to the dimensions to be sliced along.

For example:
```python
>>> cube = iris.load(iris.sample_data_path('uk_hires.pp'))[0]
>>> cube

>>> res = cube.slices_over('time')
>>> print len(list(res))
3
```