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

Qian Hao yoru.007 at gmail.com
Thu Mar 31 20:28:51 EDT 2011


Please also provide your .gs script file. I suggest you 'set dfile' to the
corresponding file you are going to dispaly. Hope this may help.

2011/3/30 Paolo Boi <pboi at arpa.sardegna.it>

>  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
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
此致
        敬礼!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110401/3195c327/attachment-0003.html 


More information about the gradsusr mailing list