23.04.2015 Views

ISOCAM Interactive Analysis User's Manual Version 5.0 - ISO - ESA

ISOCAM Interactive Analysis User's Manual Version 5.0 - ISO - ESA

ISOCAM Interactive Analysis User's Manual Version 5.0 - ISO - ESA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

154 CHAPTER 14. IMAGE ANALYSIS AND DISPLAY<br />

CIA> ps_open, /portrait, /color, /encapsulated<br />

Any plotting routine that does not specify a window can be used to direct output to idl.ps.<br />

CIA> contour, raster_pds.raster<br />

The following call to ps print will rename idl.ps to raster.ps and print it to a printer named<br />

e15 – deleting the old file in the process.<br />

CIA> ps_print, ’raster’, /delete, printer=’e15’<br />

14.8.1 Avoiding postscript problems<br />

In this section we will address some problems which are commonly experienced when printing<br />

to IDL the postscript device.<br />

• Because postscript device pixels are scalable, any output graphics will expand to fill the<br />

entire postscript device area. This means that a square image on your screen could end<br />

up as a rectangle in your postscript file.<br />

• Modifying the colour table (by using XLOADCT for example) can mess up the IDL’s<br />

internal colour table. This can give unexpected results when you output colour graphics<br />

to the postscript device.<br />

The above problems can be avoided by following the procedure in the example below.<br />

1. Create a new window by calling WINDOW with keyword retain set to 2.<br />

CIA> window, 1, retain=2<br />

2. Display your image.<br />

CIA> tviso, image<br />

Modify the colour table (with XLOADCT) asyoudesire.<br />

3. Save the displayed image using TVRD.<br />

CIA> image_get = tvrd(1)<br />

4. Now open the postscript device<br />

CIA> set_plot, ’PS’<br />

Determine the graphic size.<br />

CIA> ss = size( image_get )<br />

CIA> x = ss[1]<br />

CIA> y = ss[2]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!