ReadWrite/
read_grads.pro
reading grads file (except "data type station" or "grib")
from the grads control file even if there is multiple data files.
read_grads
Reading
result = read_grads(var, date1[, date2], FILENAME=FILENAME, BOX=A 4 or 6 elements 1d array, [lon1,lon2,lat1,lat2, depth1, depth2], TIMESTEP=TIMESTEP, EVERYTHING=EVERYTHING, NOSTRUCT=NOSTRUCT, _EXTRA=_EXTRA)
Return value
an array
Parameters
var
in
required
the variable name
date1
in
required
date of the beginning (yyyymmdd if TIMESTEP is not activate)
date2
in
optional
last date. Optional, if not specified date2=date1
Keywords
FILENAME
the grads control file name: 'xxxx.ctl'
BOX
type: A 4 or 6 elements 1d array, [lon1,lon2,lat1,lat2, depth1, depth2]
It specifies the area where data must be read
TIMESTEP
to specify that the dates are time steps instead of true calendar.
NOT yet available
EVERYTHING
NOSTRUCT
_EXTRA
Used to pass keywords
Examples
IDL> a=read_grads('sst',19900101,19900131,filename='outputs.ctl')
IDL> plt, a
Version history
Version
$Id: read_grads.pro 370 2008-08-07 07:59:15Z pinsard $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
Known issues
Restrictions
define all the grid parameters (defined in common)
associated to the data.
this function call the procedure scanfile that use the
unix commands grep and sed
Other attributes
Uses routines
common
Produced by IDLdoc 2.0.