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 #43809 is a reply to message #43808] Mon, 02 May 2005 07:31 Go to previous messageGo to previous message
yp is currently offline  yp
Messages: 42
Registered: February 2005
Member
elias wrote:
> 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...).
>
> I have a data file that, amongst others, contains some longitude
> columns. The longitude data is defined from -180 to 180 deg in this
> data file. For some consistency with some other analysis I did
before,
> I want to convert it to 0-->360 deg.
>
> So simply, I ask when it reads a longitude <0 to do: lon=360+lon


Logical error!
Just add 180. to your previous data array [-180.,180.]. i.e.
lon=lon+180.
[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 16:22:03 PDT 2025

Total time taken to generate the page: 0.23908 seconds