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

Home » Public Forums » archive » Day/Night Terminator on Map Projection
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: Day/Night Terminator on Map Projection [message #48363 is a reply to message #48311] Thu, 13 April 2006 08:20 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> You can see the code I came up with and a nice picture
> here:
>
> http://www.dfanning.com/map_tips/terminator.html
>
> To run the code, you will need to have both the Coyote
> Library and the JHUAPL Library on your IDL path.

Yikes! Matt Savoie just pointed out a very interesting
problem with the code on LINUX machines. It seems that
on LINUX (and possibly UNIX, I don't know) that issuing
a MAP_SET command changes the state of !P.MULTI. This
causes problems with TVIMAGE that I wasn't aware of.

Here is an IDL session on my LINUX box:

IDL> Print, !P.MULTI
0 0 0 0 0
IDL> Map_Set, /Cylindrical
IDL> Print, !P.MULTI
-1 0 0 0 0

An obvious workaround is to put a !P.MULTI=0 command
after every MAP_SET, but maybe there is something less
ugly than that available. I'll poke around a bit.

But in the meantime, I've put new code on my web page
that contains the workaround.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Finding a value in a array efficiently
Next Topic: Re: Possible problem with GDL environment variables under Fedora 5

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

Current Time: Sun Oct 12 06:12:20 PDT 2025

Total time taken to generate the page: 1.04179 seconds