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.

17.2. IMPORTING FITS TO REGULAR IDL DATA STRUCTURES 203<br />

CIA> cds = calg2cds( ’ccglwdark.fits’, dir=product_dir, ack=ok )<br />

CIA> help, cds, ok<br />

CDS STRING = ’CCGLWDARK_96080515324098’<br />

OK INT = 1<br />

calg2cds returns the name of the formed CDS in memory. Nothing is written to disk by<br />

this function. Use the CIA procedure cds write to save the CDS data structure to disk (see<br />

Section 16.1.5).<br />

17.2 Importing FITS to regular IDL data structures<br />

This section describes CIA routines that can be used to read any extended FITS data products.<br />

As such they can read the <strong>ISO</strong> data products into a regular IDL structure. The IDL ASTROLIB<br />

also contains several FITS reading routines which are of interest: MRDFITS and READFITS.<br />

CIA comes with a modified version of MRDFITS – the keyword option /savemem has been<br />

added to save memory when reading large files.<br />

17.2.1 Reading an <strong>ISO</strong> data product<br />

The CIA routine ia extended fits read reads an extended FITS file into a conventional IDL<br />

structure (not a PDS or SCD). For example, to read a CMOS data product (remember that<br />

<strong>ISO</strong> data products are delivered in extended FITS file) we do the following:<br />

CIA> ia_extended_fits_read, ’cmos14300601.fits’, header, array<br />

CIA> help, hdr<br />

HDR STRING = Array[209]<br />

CIA> help, array<br />

ARRAY STRUCT = -> Array[6]<br />

The output arguments header and array contain the header of the FITS file and the data<br />

from the FITS extensions. We can look at lines in the header by indexing header:<br />

CIA> print, header[0]<br />

SIMPLE = T / file does conform to FITS standard<br />

To look at the binary table:<br />

CIA> help, array, /str<br />

** Structure , 38 tags, length=25896, refs=1:<br />

CHANNEL STRING ’LW ’<br />

INDEX LONG 1<br />

TYPE STRING ’FLUX ’<br />

BITPIX LONG 32<br />

etc...

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

Saved successfully!

Ooh no, something went wrong!