cf.Data.iterindices

Data.iterindices()[source]

Return an iterator over indices of the data array.

Returns :
out : generator

An iterator over indices of the data array.

Examples

>>> d.shape
(2, 1, 3)
>>> for index in d.iterindices():
...     print index
...
(0, 0, 0)
(0, 0, 1)
(0, 0, 2)
(1, 0, 0)
(1, 0, 1)
(1, 0, 2)

Previous topic

cf.Data.func

Next topic

cf.Data.new_dimension_identifier

This Page