[gradsusr] Problem drawing meteogram

avi kojokro kojokroavi at gmail.com
Fri Oct 25 10:19:34 EDT 2013


Thank you.
But I am having a problem of error, and I do not know what did I do wrong. The
first graph is drawn well, the problem starts in second graph in the
commands I did according to what you told me.
I add here the script refers to the second graph, what did I do wrong?


'set parea 1.3 8.2 8.05 9.275'
'set xlab off'
'set grid on'
'set lev 1000'
'set t 1'
'define mx=max(z(lev=500)-z(lev=1000),t=1,t=65)'
'd mx'
m1=subwrd(result,4)
'set lev 1000'
'define mn=min(z(lev=500)-z(lev=1000),t=1,t=65)'
'd mn'
m2=subwrd(result,4)
'set lev 1000'
'set vrange 'm2-1' 'm1+1
'set t 1 65'
'set ccolor 3'
'set cmark 0'
'set ylint 20'
'd z(lev=500)-z(lev=1000)'
'q gxinfo'
x=sublin(result,3)
xlo=subwrd(x,4)
xhi=subwrd(x,6)
y=sublin(result,4)
ylo=subwrd(y,4)
yhi-subwrd(y,6)
'draw recf 'xlo' 'ylo' 'xhi' 'yhi''
'set string 3'
'set strsiz 0.08 0.1'
'draw string 0.03 9.075 1000-500'
'draw string 0.03 8.675  max:'m1''
'draw string 0.03 8.275 min:'m2''
'set parea off'



And I also added a screenshot of the error in the command window of Grads.

Avi.


2013/10/25 Davide Sacchetti <davide.sacchetti at arpal.gov.it>

> method 2:
> display something
> 'q gxinfo' returns you frame limits
> use sublin, subwrd on 'result' to get X and Y limits
> use 'draw recf' to cover xlabels just under Y bottom limit
>
> (everithing well documented in
> http://grads.iges.org/grads/gadoc/gadocindex.html )
>
> bye bye
> Davide
>
> On Fri, 2013-10-25 at 12:37 +0300, avi kojokro wrote:
> > Thank you.
> > Could you please give an example of how to write the script as you
> > said?
> >
> >
> > Avi.
> >
> >
> >
> > 2013/10/25 Davide Sacchetti <davide.sacchetti at arpal.gov.it>
> >         i know just two workarounds:
> >         1) draw vertical lines (you can set color and style of the
> >         grid)
> >         2) let grads draw vertical lines and time labels, after set
> >         line 0 and
> >         draw recf on the area spanned by time labels
> >
> >         hoping it my help
> >         bye bye
> >         Davide
> >
> >
> >         On Fri, 2013-10-25 at 09:47 +0300, avi kojokro wrote:
> >         > Hello to all users of Grads.
> >         > I am attaching a screenshot of the command window and window
> >         graphics
> >         > Grads, And the script.
> >         > I use the command "  set xlab on " and  "'set xlpos 0 t' "
> >          To draw
> >         > the dates on the x axis, Then in the first graph created
> >         time lines in
> >         > the graph above, my problem is: How do I keep the time line
> >         in the
> >         > second, third, etc graph without painting the date and use
> >         the command
> >         > " set xlab on " ?
> >         >
> >         > Does anyone have an idea?
> >         >
> >         > Thanks and sorry for bad English
> >         >
> >         >
> >         > Avi.
> >         >
> >
> >         > _______________________________________________
> >         > gradsusr mailing list
> >         > gradsusr at gradsusr.org
> >         > http://gradsusr.org/mailman/listinfo/gradsusr
> >
> >         --
> >         --> Attenzione cambio indirizzo: davide.sacchetti at arpal.gov.it
> >         --
> >         Davide Sacchetti
> >         Centro Funzionale Meteo Idrologico di Protezione Civile della
> >         Regione Liguria
> >         ARPAL Unità Tecnica Complessa di livello Regionale
> >         V.le Brigare Partigiane 2 16121 Genova (I)
> >         tel: +39 010 6437535                    fax: +39 010 6437520
> >         mail: davide.sacchetti at arpal.gov.it     web:
> >         www.meteoliguria.it
> >
> >
> >         _______________________________________________
> >         gradsusr mailing list
> >         gradsusr at gradsusr.org
> >         http://gradsusr.org/mailman/listinfo/gradsusr
> >
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
>
> --
> --> Attenzione cambio indirizzo: davide.sacchetti at arpal.gov.it
> --
> Davide Sacchetti
> Centro Funzionale Meteo Idrologico di Protezione Civile della Regione
> Liguria
> ARPAL Unità Tecnica Complessa di livello Regionale
> V.le Brigare Partigiane 2 16121 Genova (I)
> tel: +39 010 6437535                    fax: +39 010 6437520
> mail: davide.sacchetti at arpal.gov.it     web: www.meteoliguria.it
>
>
> _______________________________________________
> 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/20131025/ddc1f475/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3.png
Type: image/png
Size: 82212 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20131025/ddc1f475/attachment-0001.png 


More information about the gradsusr mailing list