cdms2.fvariable:FileVariable

FileVariable.getSlice(*specs, **keys)

getSlice takes arguments of the following forms and produces a return array.

Parameters
rawif set to 1, return numpy.ma only
squeezeif set to 1, eliminate any dimension of length 1
gridif given, result is regridded ont this grid.
orderif given, result is permuted into this order
numericSqueezeif index slice is given, eliminate that dimension.
isitemif given, result is return as a scaler for 0-D data
Notes
There can be zero or more positional arguments, each of the form:
#. a single integer n, meaning slice(n, n+1)
#. an instance of the slice class
#. a tuple, which will be used as arguments to create a slice
#. `None` or `:`, which means a slice covering that entire dimension
#. Ellipsis (…), which means to fill the slice list with `:`

leaving only enough room at the end for the remaining positional arguments

There can be keyword arguments of the form key = value, where
key can be one of the names `time`, `level`, `latitude`, or
`longitude`. The corresponding value can be any of (1)-(5) above.
There must be no conflict between the positional arguments and
the keywords.
In (1)-(5) negative numbers are treated as offsets from the end
of that dimension, as in normal Python indexing.