X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 16 Jan 2008 08:47 AM by  anon
Displaying multiple images with one program
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
16 Jan 2008 08:47 AM
    Hello, all! I am enrolled in a Satellite Remote Sensing class this semester, but I'm brand new to IDL. We have an assignment given to us to display 5 different images; however, I can only get them to display in the same window every time. How do I get multiple images to display using one program?

    Deleted User



    New Member


    Posts:
    New Member


    --
    16 Jan 2008 08:47 AM
    Plotting commands like PLOT and CONTOUR or imaging commands like TV automatically initialize a window, if none exists. If one exists, however, those commands just keep overwriting that window. The command for opening a graphics window that you can control more thoroughly is WINDOW. WINDOW takes an optional argument 'Window_Index' which allows the programmer to open additional windows beyond the first. To open 5 windows you might use an approach like this: windowIndexes = lonarr(5) ; Window indexes are long integers under the covers for i = 0, 4 do WINDOW, windowIndexes[i], XSIZE=myWinWidth, YSIZE=myWinHeight Now, to pick a specific window for a particular graphics output, you use the IDL command WSET. Let's say, for example, you want to change the image shown on the second window that you initialized above. Here is the code: wset, windowIndexes[1] TV, myNewImage James Jones
    You are not authorized to post a reply.