cfdm.CompressedArray.__getitem__¶

CompressedArray.
__getitem__
(indices)[source]¶ Return a subspace as an independent numpy array.
x.__getitem__(indices) <==> x[indices]
Indexing follows rules that are very similar to the numpy indexing rules, the only differences being:
An integer index i takes the ith element but does not reduce the rank by one.
When two or more dimensions’ indices are sequences of integers then these indices work independently along each dimension (similar to the way vector subscripts work in Fortran). This is the same behaviour as indexing on a Variable object of the netCDF4 package.
New in version (cfdm): 1.8.7.0