comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: wrong results...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: wrong results... [message #43938 is a reply to message #43806] Tue, 03 May 2005 10:40 Go to previous messageGo to previous message
yp is currently offline  yp
Messages: 42
Registered: February 2005
Member
Kenneth Bowman wrote:
>
> lon = (lon + 360.0) MOD 360.0
>

Thats brilliant!

> By the way, the reverse transformation is
>
> lon = lon - (LONG(lon)/180)*360.0
>

This is great too; but how to parse the last element? Using the above
transformation, 180.0 becomes -180.0 at both ends. This does transform
the coordinate exactlty for all elements except +180.0. Of course,
zonally 180 = -180 from a geographic perspective.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: idlgrcontour missing contours
Next Topic: Tricky data-summing question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:53:44 PDT 2025

Total time taken to generate the page: 1.28033 seconds