[gradsusr] rectangle box of South China Sea

hersala hersala at gmail.com
Fri Nov 12 12:38:53 EST 2010


Hi San Luo:
Perhaps you are interested in adjust the position of the rectangle using
world coordinates. This could be more conviniente because it will adapt to
the size and the area selected in your plot. Below is the piece of script
wich I have used.
Cheers.

Hernán Sala
DCT, Instituto Antártico Argentino


*Draw rectangle using world coordinates
*First corner world coodinates
lon1= 116
lat1= -78
'q w2xy 'lon1' 'lat1
say result
x1 = subwrd(result,3)
y1 = subwrd(result,6)
*Second corner world coodinates
lon2= 239
lat2= -70
'q w2xy 'lon2' 'lat2
say result
x2 = subwrd(result,3)
y2 = subwrd(result,6)
*draw rectangle using xlo ylo xhi yhi
'draw rec 'x1' 'y1' 'x2' 'y2



2010/11/11 san luo <anthony.luosan at gmail.com>

> Hi everyone ;
>            I have a problem,I would like to adjust the  location of the
> rectangle box of South China Sea ,Want to move  the rectangle box to the
> right edge ,Can someone help me?
>
>
> _______________________________________________
> 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/20101112/8ab47ffc/attachment-0003.html 


More information about the gradsusr mailing list