NCL Website header
NCL Home > Documentation > Language

Array Reversal

The NCL syntax (::-1) is used to reverse the order of an array:
    x1D_reverse         = x1D_reverse(::-1)               
    y3D_partial_reverse = y3D_partial_reverse(:,:,::-1)         ; reverses last dimension