[gradsusr] How to use draw function
sushant puranik
sushantpuranik at gmail.com
Wed May 19 08:46:07 EDT 2010
Thank you very much. Problem is solved.
On Wed, May 19, 2010 at 5:09 PM, hersala <hersala at gmail.com> wrote:
> Hi Sushant
> I send you a little example that allow to draw a rectangle using world
> coordinates, so you can change the size or change slightly the geographic
> region selected for your plot and the rectangle will be "anchored" to its
> geographic position. This small code shoul by used in a *.gs script.
> Best regards.
>
> Lic. Hernán Sala
> Instituto Antártico Argentino
>
>
> *Draw rectangle
> 'set line 7 1 6'
> lon1= 135
> lat1= -78
> 'q w2xy 'lon1' 'lat1
> say result
> x1 = subwrd(result,3)
> y1 = subwrd(result,6)
> lon2= 239
> lat2= -70
> 'q w2xy 'lon2' 'lat2
> say result
> x2 = subwrd(result,3)
> y2 = subwrd(result,6)
> 'draw rec 'x1' 'y1' 'x2' 'y2
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Sushant Puranik
Junior Research Fellow
Dept. of Atmospheric & Space Sciences,
University of Pune,
Pune-07,
India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/929469b6/attachment-0003.html
More information about the gradsusr
mailing list