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 #43807 is a reply to message #43806] Mon, 02 May 2005 07:54 Go to previous messageGo to previous message
elias is currently offline  elias
Messages: 13
Registered: April 2005
Junior Member
David Fanning 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. :-)

Well, I didn't exactly notice it after I pressed the SEND button, but
just after I got my first really unreasonable results... :-)

The 360 was supposed only in the case I was calculating angular
separation between spacecraft + moon...

As for this IDL problem, maybe I don't need to fight with it anymore,
but in any case, it seems that when it changes the value from negative
to positive (by adding the 360), it somehow adds 360 for a second time
(although the if statement is not satisfied), and therefore I get these
strange values...
[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:14:53 PDT 2025

Total time taken to generate the page: 0.00464 seconds