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.

204 CHAPTER 17. IMPORTING <strong>ISO</strong> DATA PRODUCTS TO CIA<br />

Each <strong><strong>ISO</strong>CAM</strong> image is stored in a vector (<strong><strong>ISO</strong>CAM</strong> Handbook, Section 2.3.4). Before we<br />

can reform and display them they need to be rescaled (<strong><strong>ISO</strong>CAM</strong> Handbook, Chapter 7):<br />

CIA> bscale = array.bscale<br />

CIA> bzero = array.bzero<br />

CIA> data = float(array.array)<br />

CIA> for n = 0, 5 do data[ *, n ] = data[ *, n ]* bscale[n] + bzero[n]<br />

The scaled data must now be reformed to the appropriate image size. To find the actual<br />

image size in rows and columns we look at the fields .NAXIS1 and .NAXIS2 respectively.<br />

CIA> naxis1 = array.naxis1<br />

CIA> naxis2 = array.naxis2<br />

CIA> print, naxis1, naxis2<br />

80 80 80 79 79 79<br />

80 80 80 80 80 80<br />

To reform the images:<br />

CIA> nb = naxis1 * naxis2 - 1<br />

CIA> for n=0, 5, 3 do tviso, $<br />

CIA> reform( data[ 0: nb[n], n ], naxis1[n], naxis2[n] )<br />

When image sizes differ, only the first nb entries in each row of data are valid. Each sky<br />

image stored in the CMOS is accompanied by a second equally sized image indicating the noise<br />

level per pixel and a third image indicating the statistical weight assigned to each pixel. So in<br />

the example above we only display every third image, i.e. the sky images.<br />

17.2.2 Extracting a key from an <strong>ISO</strong> data product<br />

With the procedure by extended fits key we can read selected keys directly from a FITS file<br />

– this is more efficient then unnecessarily reading the entire file. The following extracts the data<br />

from a CISP file and displays an image. 2<br />

CIA> by_extended_fits_key, ’cisp14300601.fits’, data, ’cispdata’<br />

CIA> help, data<br />

DATA INT = Array(1024, 813)<br />

CIA> tviso, reform( data[ *, 0], 32, 32 )<br />

2 Refer to the <strong>ISO</strong> Data Product Document to find where the data is stored in the binary table, i.e. cispdata.

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

Saved successfully!

Ooh no, something went wrong!