<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

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.

topread_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 327 2007-12-13 16:22:35Z pinsard $

History

Sebastien Masson (smasson@lodyc.jussieu.fr)

Known issues

Restrictions

define all the grid parameters (defined in common.pro) associated to the data. this function call the procedure scanfile that use the unix commands grep and sed

Other attributes

Uses routines

common

Statistics

McCabe cyclic 55
McCabe essential 2
McCabe modular design 1
Produced by IDLdoc 2.0.