login

shift.gs

Top / GrADS / script / shift.gs

Japanese / English

Name

shift - Horizontally shift values of variable.

Synopsis

shift
    vorg vnew
    [-xshift xshift] [-yshift yshift] [-xyshift xshift yshift]
    [-xcyc] [-ycyc]
    [-xrev] [-yrev]

Description

To show help, simply run "shift".

Options

vorg
Original variable name.
vnew
Converted variable name.
xshift, yshift
Shift in x/y direction.
-xcyc, -ycyc
Specify if x/y is cyclic.
-xrev, -yrev
Reverse x/y AFTER shifting.

Examples

(1) Move U eastward by 5 grids.

shift u u2 -xshift 5 -xcyc
d u2

Script source code