login

clave.gs

Top / GrADS / script / clave.gs

Japanese / English

Name

clave - Make climatological mean.

Synopsis

clave
    var_in time1 time2 
    (ystart yend | -ylist y1,y2,...)
    [var_out]

Description

Make climatological mean. That is, data of particular term in each year are averaged for more than a year. To show help, simply run "clave"

Note

  • BE CAREFUL! Treatment of missing value is different between ver. 0.01 (old version) and ver. 0.02
    • ver. 0.01: Resulting climatological mean for each location is set to missing value if the data are missing value at least for one year.
    • after ver. 0.02: Resulting climatological mean for each location is set to non-missing value if the data are NOT missing value at least for one year.

Options

var_in
Variable or expression to be averaged. Do not insert space.
time1 time2
Seasonal time range. "%y", "%ypp" or "%ymm", which are replaced by a particular year, its next year, or its previous year, should be included. "%end" (end of month) may also be used. See example below:
time1 time2 explanation
"01jan%y" "01feb%y" January-mean (including 01feb).
"01jan%y" "%endjan%y" January-mean (averaged only within January).
"01jun%y" "%endaug%ypp" JJA-mean.
"01dec%y" "%endmar%ypp" DJF-mean.
"01dec%ymm" "%endmar%y" DJF-mean (Year of Feb-Mar is a base year).
ystart1 yend
Range of year to take climatological mean.
-ylist y1,y2,...
List of year to take climatological mean.
var_out
Variable name in which the resulting climatological mean values are stored.

Examples

(1) Draw January climatology of U in the 1980s.

ga-> clave u 01jan%y %endjan%y 1980 1989

(2) Store DJF climatology of ps between 1970 and 2000 to the variable clps and draw.

ga-> clave ps 01dec%y %endfeb%ypp 1970 1999 clps
ga-> d clps

Script source code