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 #43806 is a reply to message #43799] Mon, 02 May 2005 08:32 Go to previous messageGo to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <MPG.1cdfe74036bd65989899e4@news.frii.com>,
David Fanning <davidf@dfanning.com> wrote:

> This probably occurred to you a fraction of a second after
> you hit the SEND button, but if your data goes from -180 to 180,
> and you want it to go from 0 to 360, you will add 180 to each
> value, not 360. :-)

That would rotate the coordinate system by 180 degress, putting the dateline at
the Greenwich meridian, and vice versa. To keep 0 degrees at Greenwich, but
measure longitude from 0 to 360, rather than -180 to 180, I think he really
wants to do what was in my other post:

lon = (lon + 360.0) MOD 360.0

By the way, the reverse transformation is

lon = lon - (LONG(lon)/180)*360.0


Ken Bowman
[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: Wed Oct 08 19:17:10 PDT 2025

Total time taken to generate the page: 0.00450 seconds