how to draw rectangle

Heiner Körnich heiner at MISU.SU.SE
Fri Jan 18 05:15:19 EST 2008


Hi,

"draw rec" uses the coordinates of the GrADS-page from 0 to 11 and 0 to 8.5.
So, you have to convert the geographical coordinates to these
page-coordinates with " q w2xy".

Regards,
Heiner

On Jan 18, 2008 10:54 AM, Sachin Ghude <sachinghude at tropmet.res.in> wrote:

> Hi all,
>
> I am trying to highlight Indian region drawing a transparent BOX over a
> Grads image.
>
> I am using "draw rec xlo ylo xhi yhi" command, but its not working. could
> somebody
> help me to draw a rectangle over a selected location.
>
> Following are the sequence of command im using in script file.
> 'reinit'
> 'set display color white'
> 'c'
> 'set grads off'
> 'set gxout shaded'
> 'set clevs 0 50 100 150 200 250 300 325 350'
> 'set ccolor rainbow'
> 'd Oz'
> 'draw rec 65 8 95 35'
> 'run cbarn'
> 'printim G:GlobalOz.jpg'
>
> Sachin Ghude
> IITM
>



-- 
Heiner Körnich
Dept. of Meteorology            Tel:  +46 8 164333
Stockholms University, SE-106 91 Stockholm, Sweden
Email: heiner at misu.su.se   www.misu.su.se/~heiner/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080118/b1bc1107/attachment.html 


More information about the gradsusr mailing list