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 #43799 is a reply to message #43798] Mon, 02 May 2005 14:31 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"elias" <elias.roussos@gmail.com> wrote in message
news:1115041740.084382.99550@f14g2000cwb.googlegroups.com...
> Hi,
>
> The following problem probably has something to do with definitions of
> floating, integer etc, but I don't really know to solve it (although i
> am sure the solution will be simple in the end...).

> However, I am getting in the new data file created, values of longitude
> more than 600 sometimes.... I am not sure why this happens
>

Look at the lines:

if dlon lt 0 then begin
data.field3[i]=360+data.field3[i]

endif



I would guess that you mean to add 360 to dlon here, instead
of datafield3[i].

You have two lines adding 360 to data.field3, so my guess is that is
why you are seeing the ~600 values.

Cheers,
bob
[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:36:57 PDT 2025

Total time taken to generate the page: 0.12203 seconds