NCL Home > Documentation > Language

Coordinate Subscripting

Uses associated coordinate variables to determine which indices are used. The NCL syntax {...} indicate the start and end values of the coordinate variable that will be used to select the indexes.
    T(0,{-20:20},{-95:120})
    
Essentially, the start and end values are determined in the coordinate array, and those indexes are used to create a subselection. Recall that coordinate and standard subscripting can be mixed in the same variable. A stride can be added, but it remains an integer.
    T(0,:,{-95:120:2})
    
In the case of selecting just a single point: T(0,:,{-95}), NCL will choose the closest value. If the value is exactly equidistant between two points, it will choose the lesser.

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