setshift.gs
Name
setshift - Set dimension relative to the current one.
Synopsis
setshift dim shift
Description
Set dimension like "set x/y/z/t". Dimension is not set by absolute value but by relative value with reference to the current dimension. To show help, simply run "setshift".
Options
- dim
- Dimension name. "x", "y", "z", or "t".
:;shift::Amount of shift relative to the current dimension.
Examples
(1) Forward time by 1 step.
ga-> open u.ctl ga-> q dims Default file number is: 1 X is varying Lon = 0 to 360 X = 1 to 145 Y is varying Lat = -90 to 90 Y = 1 to 73 Z is fixed Lev = 1000 Z = 1 T is fixed Time = 00Z01JAN2008 T = 1 E is fixed Ens = 1 E = 1 ga-> setshift t 1 ga-> q dims Default file number is: 1 X is varying Lon = 0 to 360 X = 1 to 145 Y is varying Lat = -90 to 90 Y = 1 to 73 Z is fixed Lev = 1000 Z = 1 T is fixed Time = 06Z01JAN2008 T = 2 E is fixed Ens = 1 E = 1
Script source code
- setshift.gs (necessary)
- qdims.gsf (necessary)