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

Home » Public Forums » archive » displaying an image in simple geographic coordinates
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: displaying an image in simple geographic coordinates [message #54282 is a reply to message #54165] Tue, 29 May 2007 10:36 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Matt wrote:
> Any reason why my !RADEG values appear to be different than the ones
> posted above? When I run the same commands I get different results:
>
> IDL> map_set, /continents, /grid
> IDL> print,map_proj_forward([-90,90],[-45,45])*!RADEG
> -90.000001 -45.000001
> 90.000001 45.000001
>
> Not a huge difference but it seems to me like the conversion factor
> should be the same, right?

This looks like a floating point round-off error to me. See <http://
www.dfanning.com/math_tips/sky_is_falling.html> for relevant
information. We are probably running on different platforms. I
performed that test on my Linux desktop machine; where "uname -srvmp"
gives:

Linux 2.4.21-47.EL #1 Tue Aug 1 08:56:24 EDT 2006 i686 i686

If you're using a different platform, then it's quite feasible for
your round-off errors to be a little different from the ones I get on
my machine.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL GLT creation.
Next Topic: Changing the labels orientation

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

Current Time: Fri Oct 10 09:30:31 PDT 2025

Total time taken to generate the page: 1.11926 seconds