IDLprompt> contour, im3290, ticklen=0, /device, xstyle=1, ystyle=1, $ To draw the contours over whatever is already on the display ( im2122, in this case) without erasing the We'll set the color keyword to 0 forīlack contours, and we'll use the levels keyword to indicate that we wantĬontours drawn around the pixels which (in im3290) have values greater than The plot conforms to the device coordinates specified by the pos keyword and that no tickmarks areĭrawn around the edges of the plot. Using the ticklen, xstyle, ystyle, and device, keywords as follows ensures that We'll want the 3290 nm data ( im3290) to be magnified as im2122 was, so we'll use the pos keyword to tell IDL to draw theĬontours in a box which stretches from (0,0) to Magnification factor of 5, and with an appropriate set of
The first step is to display the 2122 nm image, which in thisĬase is a 101x101 array, so we'll display it with a Image (as in the above left image) with contours from the 3290 nm data In this example, we're going to display the 2122 nm data as a grayscale It would be useful to somehow represent both images in a single graphical Saving via a screen capture ( /applic/nir/bin/xv is good for this): The result of these efforts looks like the following, and is suitable for Intensity scale corresponds to a stretch in flux density These will indicate that the spatial scale bar is drawn to a lengthĬorresponding to 5 arcsec on the sky and that the IDLprompt> xyouts, 380, 400, 'FD / mJy', /device Now we can run the xyouts procedure, which writes text to the (This makes each text character written to the display have a size ofĢ0 pixels x 20 pixels). Something readable - this is done by some magic: This puts a 200-pixel-long vertical scale bar at theĭisplay coordinates (420,150) (that's the position of theīar's lower-left corner), and no labels are written byįinally, we'd like to add some text annotation to give meaning to the IDLprompt> scalebar, 420, 150, /nolabels, scalelen = 200 Usually don't let scalebar write any labels - I The lower-lefthand corner of the scale bar, the length (in pixels) of theīar, and what kind of (if any) labels are drawn at the ends of the bar (I Its parameters determine the display coordinates of The scalebar procedure is used to draw an IDLprompt> plots, 150 +, 440 +, thick = 3, /device The following command will draw on the screen aĮxtends from display coordinates (150,334) to
Happens to be 0.217 arcsec/pixel, and the magnification isĥ arcsec / 0.217 arcsec/pixel * 8 = 184 pixels The plots procedure can be used to draw a lineįrom point to point on the display. IDLprompt> ne_arrows, 100, 400, 40, charsize = 20, linethickness = 3 Long, makes the labels 20 pixels in size, and makes the Intersection of the arrows at display coordinates The length (in pixels) of each arrow, the thickness (in pixels) of the twoĪrrows, and the size (in pixels) of the N andĮ compass labels. Of this procedure allow the user to determine the position (in deviceĬoordinates) on the display window of the intersection of the two arrows, Ne_arrows procedure draws a compass on theĭisplay screen indicating north-up, east-left orientation. Looks nice enough, but let's give the image a little more information. IDLprompt> v, imagebox, 8, min = 0, max =. And I'll set the sam keyword to smoothe out the image: Observing run - setting o won't always put the Orientation (that's just the way it worked out for this particular I'll set the o keyword to put the image in north-up, east-left The image isįlux-calibrated, and I'll display it to scale the intensity betweenĠ and 7.5 mJy. It with a magnification of 8 in order to make it largeĮnough to take up a fair chunk of the display window. Somewhat small, with dimensions of 48x47, so I'll display In this example, the box from running v is The inverted Stern Special colormap, as it has a good When displaying single images, I like to use You may want toĬrop out a portion of your image which just shows the object of the Scale, the intensity scaling, orientation, etc. It'sĪ good idea to include in the image some information regarding the physical Tessellated, flux-calibrated image that you want to show to the boss.
Let's say that you have reduced a set of images such that you have a This is a 3-color image of the reflection nebula Gy2-21 (located in the darkĬloud L1165), made from J-, H-, and K-broadband images (blue, green, and