NCL Home > Documentation > Language

Array Stride

The NCL syntax (::stride) is used to subsample an array:
    x = (::2,::2)       ; every other point for both dimensions
    x = (:,::3,:)       ; only middle dimension is subsampled