[gradsusr] Use of subwrd, sublin y substr in GrADS 2.0.a9

Muhammad Rahiz muhammad.rahiz at ouce.ox.ac.uk
Mon Dec 20 14:59:22 EST 2010


If you issue the commands in a script as follows, there shouldn't be any 
errors.

'sdfopen ifile.nc'
'q time'

x1 = sublin(result,1)
t1 = subwrd(x1,3)
t2 = subwrd(x1,5)
say ''t1''
say ''t2''


Muhammad Rahiz
Researcher & DPhil Candidate (Climate Systems & Policy)
School of Geography & the Environment
University of Oxford

On Mon, 20 Dec 2010, Juan Jose Amides Figueroa Urbano wrote:

> Hi all, I'm working on GrADS to make some products WRF with temperature at 2
> m but my problem is to place the date on the map, when using q time indeed I
> can see the date such 06Z20DEC2010 to 06Z20DEC2010 Mon to Mon; I tried using
> the command subwrd, substr and sublin but in doing so I get the following
> error: 
> Syntax Error:  Invalid Operand 
>   'subwrd' not a variable or function name
>   Error ocurred at column 1
> DEFINE error:  Invalid expression.
> 
> Thanks.
> 
> Juan José Amides Figueroa Urbano
> Servicio Meteorológico Nacional
> Servicio Nacional de Estudios Territoriales (SNET)
> Ministerio de Medio Ambiente y Recursos Naturales (MARN)
> 
> 
> jn 3:16
> 
> 
>


More information about the gradsusr mailing list