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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

206 CHAPTER 18. EXPORT OF CIA DATA STRUCTURES<br />

primary array. Since the BS PDS is compatible with the raster PDS, this routine also<br />

works for beam-switch (CAM03) data. To save a beam-switch MOSAIC to a FITS file:<br />

CIA> raster2fits, bs_pds, name=’bs.fits’<br />

These FITS files can be viewed with packages like SAOIMAGE:<br />

CIA> $saoimage raster.fits<br />

imagette2fits writes each frame or EXPOSURE in the PDS field .IMAGE (along with the<br />

corresponding frame of .RMS and .NPIX) to the primary array of an individual FITS file.<br />

This makes it useful for exporting CVF observation (CAM04) and staring observation<br />

(CAM01) data contained in an CVF PDS or general PDS. In the example below 20 FITS<br />

files are created with a prefix taken from the keyword name.<br />

CIA> help, cvf_pds.image<br />

FLOAT = Array[32, 32, 20]<br />

CIA> imagette2fits, cvf_pds, name=’cvf.fits’<br />

CIA> $ls cvf*.fits<br />

cvf1.fits cvf13.fits cvf17.fits cvf20.fits cvf6.fits<br />

cvf10.fits cvf14.fits cvf18.fits cvf3.fits cvf7.fits<br />

cvf11.fits cvf15.fits cvf19.fits cvf4.fits cvf8.fits<br />

cvf12.fits cvf16.fits cvf2.fits cvf5.fits cvf9.fits<br />

sad write fits Expert users of CIA may use SADs to hold their calibrated data. To write the<br />

SADCMAPtoaFITSfile:<br />

CIA> sad_write_fits, ’CSAD000014300601_98072013530646’, /cmap<br />

Note that the FITS files created by the routines described above can be easily loaded into<br />

IDL with the ASTROLIB routine READFITS.<br />

18.3 Export for archiving<br />

For archiving purposes we want to save the entire contents of a CIA data structure to an extended<br />

FITS file.<br />

struct2fits writes an entire CIA data structure to a FITS file. The data is stored in extensions.<br />

CIA> struct2fits, raster_pds, name=’raster_archive.fits’<br />

fits2struct recovers the output of struct2fits. It initializes the appropriate PDS and then fills<br />

it as best it can. It is very useful for upgrading the architecture of an obsolete PDS.

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

Saved successfully!

Ooh no, something went wrong!