NCL Home >
Documentation >
Language
Standard Subscripting
Provides the capability of selecting ranges and strides in addition to the ability to select data using a vector of integer indexes. Standard subscripting indexes must be an integer. A range subscript selection accepts a beginning and ending index separated by a colon :.
T(0:20,0:)
Another option is to leave out the start,
end or both:
T(:20,:180) or T(0,:)
An index can be reversed using a negative stride:
T(::-1,::-1)
An index can be subsampled using a positive stride:
T(::2,::2)
Considerably more
information about NCL variable subscripting may be found in the "Variables" section of the
NCL Reference Manual