Open two ctl files at same time

Mary Jo Nath Mary-Jo.Nath at NOAA.GOV
Thu May 25 12:27:04 EDT 2006


If the two datasets don't have exactly the same coordinate values for
latitude, longitude , level or time, then you might need to
do the "set lat,  "set lon", "set lev", "set t" commands again after you
do "set dfile 2".

Mary Jo


Paco Pastor wrote:
> Hi Grads users
>
> I'm having problems to plot a time series of temperature so I can see
> results of diferent model simulations in a multi-line plot. The problem
> comes when I try to plot the temp from the second ctl file. Both ctl
> cover the same domain, I first plot tempc.1 but get an error (see below)
> of invalid coordinates when plotting tempc.2.
>
> Is this the right syntax? I tried set dfile 1, d tempc, set dfile 2,
> plot tempc but got the same error message.
>
> Any suggestion?
>
> Thanks in advance
>
>
>
> ga-> open RAD_CHEN.ctl
> Scanning description file:  RAD_CHEN.ctl
> Data file ./RAD_CHEN.gra is open as file 1
> LON set to -1.75279 0.641022
> LAT set to 37.6983 41.046
> LEV set to 57.267 57.267
> Time values set: 2006:5:16:0 2006:5:16:0
> ga-> q file
> File 1 : RAMS Output
>   Descriptor: RAD_CHEN.ctl
>   Binary: ./RAD_CHEN.gra
>   Type = Gridded
>   Xsize = 134  Ysize = 187  Zsize = 29  Tsize = 84
>   Number of Variables = 1
>     tempc 29 99 - RAMS : temperature [C]
>
> ga-> open Z50TP2.ctl
> Scanning description file:  Z50TP2.ctl
> Data file ./Z50TP2.gra is open as file 2
> ga-> set dfile 2
> Default file set to: ./Z50TP2.gra
> ga-> q file
> File 2 : RAMS Output
>   Descriptor: Z50TP2.ctl
>   Binary: ./Z50TP2.gra
>   Type = Gridded
>   Xsize = 134  Ysize = 187  Zsize = 29  Tsize = 84
>   Number of Variables = 1
>     tempc 29 99 - RAMS : temperature [C]
>
> ga-> set lat 40
> LAT set to 40.0021 40.0021
> ga-> set lon 0
> LON set to -0.0069278 -0.0069278
> ga-> set t 1 24
> Time values set: 2006:5:16:0 2006:5:16:23
>
> ga-> d tempc.1
> ga-> d tempc.2
> Data Request Error: Invalid grid coordinates
>   World coordinates convert to non-integer grid coordinates
>     Variable = tempc.2  Dimension = 2
>   Error ocurred at column 1
> DISPLAY error:  Invalid expression
>   Expression = tempc.2
>
>
> --
> ___________________________________________________________________________________________________
>
> Francisco Pastor
> Meteorology department
> Fundación CEAM
> paco at ceam.es
> http://www.ceam.es/ceamet
> http://www.ceam.es/
> Paterna, Valencia, Spain
> ___________________________________________________________________________________________________
>
> Usuario Linux registrado: 363952
> PGP Public Key: ADC634EC
>



More information about the gradsusr mailing list