cfdm.GatheredArray.__getitem__¶
-
GatheredArray.
__getitem__
(indices)[source]¶ Returns a subspace of the uncompressed data as a numpy array.
x.__getitem__(indices) <==> x[indices]
The indices that define the subspace are relative to the uncompressed data and must be either
Ellipsis
or a sequence that contains an index for each dimension. In the latter case, each dimension’s index must either be aslice
object or a sequence of two or more integers.Indexing is similar to numpy indexing. The only difference to numpy indexing (given the restrictions on the type of indices allowed) is:
When two or more dimension’s indices are sequences of integers then these indices work independently along each dimension (similar to the way vector subscripts work in Fortran).