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

Home » Public Forums » archive » map_set, !map, !x, !p.position (and behind this curtain, !x.*)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
map_set, !map, !x, !p.position (and behind this curtain, !x.*) [message #48035] Wed, 22 March 2006 19:22 Go to next message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
Hi IDL Genii,

Everything would be dandy if I could just call

MAP_SET,<PROJECTION INFO>,POSITION=<POSITION>,LIMIT=<LIMIT>

But in my application, the map projection and limit must be set OUTSIDE
of the routine, and the position must be set INSIDE (the routine draws
the map, overlays the contours, and then draws a colorbar legend and
some additional annotation).

IDL help notes that MAP_SET changes the !X.TYPE variable, but MAP_SET
definitely does more than that to !X and !Y, things that (AFAIK)
MAP_PROJ_INIT isn't made to do.

The only information that really has to be specified outside the
routine is the projection type and the map boundaries (LIMIT). My
thought was to pass !MAP, !X, and !Y through, but the drawing calls
just ignore the !P.POSITION keyword when I do that. I can't find a way
to pass this information without passing all those projection
parameters, which is-- well, incomplete, non-robust, and just plain
ugly.

Searching the newsgroup for help with this, I heard someone call for
putting a keyword into MAP_SET to take output from MAP_PROJ_INIT. Hear
hear!!!

I'm sure there's a 20-line kluge to get around this, and hey-- my teams
are all out of the tournament, what was I gonna do this weekend anyway?
Re: map_set, !map, !x, !p.position (and behind this curtain, !x.*) [message #48169 is a reply to message #48035] Thu, 30 March 2006 00:31 Go to previous message
Jan Kristian Jensen is currently offline  Jan Kristian Jensen
Messages: 10
Registered: February 2006
Junior Member
Ed Hyer wrote:
> Jan,
>
> It's back up. I don't want to post to group because it's ~350 lines
> long. The file on the FTP site has all of the MAP_SET auxiliary
> routines, which are unmodified, as well as the MAP_SET_HACK routine,
> which is a substitute for MAP_SET. You could put just this routine into
> a file, but then you have to compile MAP_SET explicitly to use
> MAP_SET_HACK.
>
> --Edward H.

Thanks a lot. Looking forward to dig into it (but it will take some time
before I can make the time, though... )


Jan
--
Jan Kristian Jensen

Remove the obvious from the email adress to email me.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: A New error msg, for me: % Variable is undefined: <UNDEFINED>
Next Topic: announce icglib

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

Current Time: Wed Oct 08 13:04:22 PDT 2025

Total time taken to generate the page: 0.00544 seconds