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

Home » Public Forums » archive » Re: Maps, overlaying, and !Pmulti (again)
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
Re: Maps, overlaying, and !Pmulti (again) [message #84113] Tue, 30 April 2013 06:41
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
AMS writes:

> Basically, I am writing a routine to map orbits of satellite data. I want to set it up so, if you want to overlay data from multiple satellites (with e.g. different spatial resolutions and swath positions) onto one image, you can call the routine twice and have the second orbit overlay the first. So in calling the plotting routine twice, map_set will inherently be called twice (although you'd pass the same map projection info).
>
> Is there some better way to approach it? Hmmm. Perhaps I should instead write it so you're overplotting, it omits the second call to map_set?

Well, frankly, I think it is the "plotting" that is advancing !P.Multi,
not the MAP_SET. So, yes, I think overplotting with a routine that
doesn't "erase" the window would be a better idea. If you want to
overplot "after the fact", then you can just save the normal system
variables that get set by a plot operation (or, in your case, by
MAP_SET) and restore them when you want to overplot.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Maps, overlaying, and !Pmulti (again) [message #84114 is a reply to message #84113] Tue, 30 April 2013 06:38 Go to previous message
Andy Sayer is currently offline  Andy Sayer
Messages: 127
Registered: February 2009
Senior Member
Ok, think I realised the answer just after posting (as is often the way). David, your comment led me to it, thanks. I added a keyword to my routine which, if passed, bypasses the call to map_set. So you can overlay multiple images that way.

Andrew

On Tuesday, April 30, 2013 9:34:04 AM UTC-4, AMS wrote:
> Basically, I am writing a routine to map orbits of satellite data. I want to set it up so, if you want to overlay data from multiple satellites (with e.g. different spatial resolutions and swath positions) onto one image, you can call the routine twice and have the second orbit overlay the first. So in calling the plotting routine twice, map_set will inherently be called twice (although you'd pass the same map projection info).
>
>
>
> Is there some better way to approach it? Hmmm. Perhaps I should instead write it so you're overplotting, it omits the second call to map_set?
>
>
>
> Andrew
>
>
>
> On Tuesday, April 30, 2013 9:26:41 AM UTC-4, David Fanning wrote:
>
>> AMS writes:
>
>>
>
>>
>
>>
>
>>> The situation is, I want to overlay two images (e.g. two separate satellite orbits) on one map projection, through sequential calls to map_set.
>
>>
>
>>>
>
>>
>
>>> If !p.multi=0, this seems to work fine:
>
>>
>
>>>
>
>>
>
>>> map_set
>
>>
>
>>> (plot first orbit)
>
>>
>
>>> map_set,/noerase
>
>>
>
>>> (plot second orbit)
>
>>
>
>>
>
>>
>
>> I'm not sure I understand what you are doing. You have two *different*
>
>>
>
>> map projections that you want to display in the same location in a
>
>>
>
>> graphics window? Why are you using two Map_Set commands?
>
>>
>
>>
>
>>
>
>> Cheers,
>
>>
>
>>
>
>>
>
>> David
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> --
>
>>
>
>> David Fanning, Ph.D.
>
>>
>
>> Fanning Software Consulting, Inc.
>
>>
>
>> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
>>
>
>> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Maps, overlaying, and !Pmulti (again) [message #84115 is a reply to message #84114] Tue, 30 April 2013 06:34 Go to previous message
Andy Sayer is currently offline  Andy Sayer
Messages: 127
Registered: February 2009
Senior Member
Basically, I am writing a routine to map orbits of satellite data. I want to set it up so, if you want to overlay data from multiple satellites (with e.g. different spatial resolutions and swath positions) onto one image, you can call the routine twice and have the second orbit overlay the first. So in calling the plotting routine twice, map_set will inherently be called twice (although you'd pass the same map projection info).

Is there some better way to approach it? Hmmm. Perhaps I should instead write it so you're overplotting, it omits the second call to map_set?

Andrew

On Tuesday, April 30, 2013 9:26:41 AM UTC-4, David Fanning wrote:
> AMS writes:
>
>
>
>> The situation is, I want to overlay two images (e.g. two separate satellite orbits) on one map projection, through sequential calls to map_set.
>
>>
>
>> If !p.multi=0, this seems to work fine:
>
>>
>
>> map_set
>
>> (plot first orbit)
>
>> map_set,/noerase
>
>> (plot second orbit)
>
>
>
> I'm not sure I understand what you are doing. You have two *different*
>
> map projections that you want to display in the same location in a
>
> graphics window? Why are you using two Map_Set commands?
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Maps, overlaying, and !Pmulti (again) [message #84116 is a reply to message #84115] Tue, 30 April 2013 06:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
AMS writes:

> The situation is, I want to overlay two images (e.g. two separate satellite orbits) on one map projection, through sequential calls to map_set.
>
> If !p.multi=0, this seems to work fine:
>
> map_set
> (plot first orbit)
> map_set,/noerase
> (plot second orbit)

I'm not sure I understand what you are doing. You have two *different*
map projections that you want to display in the same location in a
graphics window? Why are you using two Map_Set commands?

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Maps, overlaying, and !Pmulti (again)
Next Topic: Re: IDL 'unexpectedly quit' when plotting large data sets on mac os x

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

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

Total time taken to generate the page: 0.00421 seconds