X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02 Apr 2020 07:50 AM by  Barry Lesht
Overlay disjoint images on large base map?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Barry Lesht



New Member


Posts:14
New Member


--
31 Mar 2020 08:36 AM
    I have several data arrays representing different regions within a large area. Each array has latitude and longitude information. I want to produce a single image with the regions placed on a common underlying map. I have tried using MAP_SET to define the base map and then, for each region, used MAP_PATCH to warp it into its proper place on the larger base map. The problem is that I can't figure out how to display them all; when I try using TV, for example, the display window is wiped clean each time I add an image. It may be that the IMAGE function will work, but it isn't clear to me how I would use it in this application. The examples provided in the IMAGE documentation don't seem applicable to this problem. I would appreciate some guidance. Thanks.

    Barry Lesht



    New Member


    Posts:14
    New Member


    --
    02 Apr 2020 07:50 AM
    As the original poster, I want to report that I found a solution to this problem. The solution involves using the Coyote library of routines in place of the standard IDL routines. In brief, I used the following sequence of steps:

    1. cgDisplay <- Opens a window
    2. cgMap <- Creates a map object with the desired projection and extent of the background map.
    3. Within a loop over the number of separate regions
    3a. cgWarpToMap <- Puts the region into the proper place in the map space, uses the map object created in step 2.
    3b. cgImage <- Using the /NOERASE and /OVERPLOT keywords
    4. cgColorBar <- Common color bar



    You are not authorized to post a reply.