[gradsusr] Plot images by using two different .ctl files (different lat long steps)

Paolo Boi pboi at arpa.sardegna.it
Wed Mar 30 07:04:27 EDT 2011


Hi,

I tried to plot two different set of data in GRIB format. Here are the
two .ctl files, with different step in lat long:

dset ^12140800.w73.grb
index ^12140800.w73.grb.idx
undef 9.999E+20
title 12140800.w73.grb
*  produced by grib2ctl v0.9.12.5p16
dtype grib 255
options yrev
ydef 1024 linear 28.108000 0.0269494
xdef 1280 linear -4.311000 0.0269494
tdef 1 linear 08Z14dec2009 1mo
zdef 1 linear 1 1
vars 1
IMGD  0 127,122,22  ** Image data []
ENDVARS

dset ^suolo.grb
index ^suolo.grb.idx
undef 9.999E+20
title suolo.grb
*  produced by grib2ctl v0.9.12.5p16
dtype grib 255
options yrev
ydef 25 linear 20.000000 2.5
xdef 65 linear -90.000000 2.5
tdef 14 linear 12Z21mar2011 12hr
zdef 1 linear 1 1
vars 2
MSLsfc  0 151,1,0  ** Mean Sea Level (MSL) Pressure [Pa]    Pa
Tprs  0 130,100,850  ** Temperature [K]
ENDVARS

The two data set have a completely different step in lat long. 
Here is the output error. I' using grads-1.8sl11.

Data Request Error: Invalid grid coordinates
  World coordinates convert to non-integer grid coordinates
    Variable = imgd  Dimension = 3
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = imgd/4
Cannot plot color bar: No shading information
Hardcopy output file is closed
No hardcopy metafile open
GX package terminated



Many thanks
Paolo


---------------------------------------------------
Paolo Boi

ARPAS- Agenzia Regionale per la Protezione dell'Ambiente della Sardegna
Dipartimento Specialistico Regionale Idrometeoclimatico
Servizio Idrometeoclimatico

Viale Porto Torres 119 - 07100 Sassari
Tel + 39 079 258600
Fax + 39 079 262681

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110330/c3b701e9/attachment-0003.html 


More information about the gradsusr mailing list