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

Home » Public Forums » archive » Re: Map Projection Bug
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: Map Projection Bug [message #64722] Thu, 15 January 2009 15:47 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ed Hyer writes:

> Wow, this is really a tough one. Out of curiosity, I just did a quick
> scan through all the map_* routines in /idl/lib/, and I'm pretty
> confident that whatever is getting modified by the call to
> map_proj_init(), it's not a ! system variable. There was one
> suspicious line, 'suspicious' in that "I don't understand it." When
> creating a new MapStruct, it starts from !MAP, but does it like this:
>
> sMap = {!MAP}
>
> What means the curly braces?

Curly braces are how you create a structure. When IDL
creates a structure like this, it doesn't save the
instance data, rather it saves the *definition* of the
structure. So, the sMap variable is a structure of the
same type as the !MAP structure. This is what you would
expect.

What you *wouldn't* expect is that this variable, created
in one program, would change because of something you did
in some completely unrelated program!

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Trouble writing very large files
Next Topic: Re: Two Million Visitors!

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

Current Time: Wed Oct 08 17:58:11 PDT 2025

Total time taken to generate the page: 0.00390 seconds