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.

16.5. CDS DATA EXTRACTION 197<br />

16.5 CDS data extraction<br />

This section describes ways in which you can examine the contents of a CDS (remember that<br />

a CDS is a CIA data structure which holds CAM calibration data – see Section 15.3). The<br />

different types of calibration data (i.e. CAL-G files) and the CDS name for each is given in<br />

Table 15.3.2 on page 173).<br />

Let’s assume you want to find out (without using find best psf - see Section 20.12.2) what<br />

PSFs we have for an observation configured with a 3” PFOV and the LW2 filter.<br />

1. Firstly, you have to read in the LW PSF CDS:<br />

CIA> psf_cds = cds_read( ’lwpsf’ )<br />

2. Secondly, you have to know the LW2 filter wheel position and the LW lens wheel position<br />

for the 3¨PFOV. You can find this information either in the <strong><strong>ISO</strong>CAM</strong> documentation (e.g.<br />

<strong><strong>ISO</strong>CAM</strong> User’s <strong>Manual</strong>), in the CIA files hk wheels n.txt (see Section 15.4.3) or with the<br />

function convert wheel back:<br />

CIA> lw2_position = convert_wheel_back( ’LW FILTER’, ’LW2’ )<br />

CIA> pfov_position = convert_wheel_back( ’PFOV LW’, 3.0 )<br />

3. As described in Section 15.3.2, all calibration data reside in the .DATA substructure. To<br />

extract .DATA from our PSF CDS:<br />

CIA> data = cds_get( ’data’, psf_cds )<br />

4. Inside this substructure you will find the cube DATA(*).IMAGE, and the arrays<br />

DATA(*).PFOV and DATA(*).FCVF. Respectively, these hold a variety of PSFs with<br />

their corresponding lens wheel positions and PFOVs. Using the IDL command WHERE<br />

we can pick out the PSFs that we require.<br />

CIA> nn = where( ( DATA.FCVF eq lw2_position ) AND $<br />

CIA> ( DATA.PFOV eq pfov_position ) )<br />

CIA> psf = data[nn].image[*,*,0]<br />

Now the variable psf will hold a cube of PSF images corresponding to the CAM configuration<br />

of filter wheel LW2 and a PFOV 3¨. You could preview these with x3d:<br />

CIA> x3d, psf<br />

16.6 Manipulating CIA data structure history<br />

The processing applied within CIA to CIA data structures, also known as the history, is recorded<br />

in the CIA data structure field PROCESS. The following sections will show you how to extract<br />

and replace this field.

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

Saved successfully!

Ooh no, something went wrong!