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 :.


    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:


    An index can be subsampled using a positive stride:

Considerably more information about NCL variable subscripting may be found in the "Variables" section of the NCL Reference Manual