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.

174 CHAPTER 15. CIA DATA STRUCTURE HIGH-LEVEL ARCHITECTURE<br />

Now convert the CAL-G file, named K.fits in our example, to a CDS 8 :<br />

CIA> dark = calg2cds( ’K’, dir=calg_dark_dir )<br />

n_rows 5<br />

creating CDS CCGLWDARK_96052312123000<br />

Listing the CDSs in memory we see that two CDS exist:<br />

CIA> print, cds_list()<br />

CCIGAIN_9504417414600 CCGLWDARK_96052312123000<br />

CCIGAIN 9504417414600 is simply a conversion table for the raw values in DATA(i).GAIN.<br />

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

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

** Structure CCIGAIN_STRUC, 1 tags, length=12:<br />

GAIN FLOAT Array(3)<br />

CIA> print, gain<br />

{ 1.00000 2.00000 4.00000<br />

}<br />

CCGLWDARK 96052312123000 or dark is the CDS we are interested in. We can extract<br />

the DATA substructure with cds get and display its contents.<br />

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

CIA> help, dark_data<br />

DARK_DATA STRUCT = -> CCGLWDARK_STRUC Array(5)<br />

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

** Structure CCGLWDARK_STRUC, 17 tags, length=8572:<br />

SPARE BYTE Array(36)<br />

TINT INT 2<br />

EWHL INT 308<br />

SWHL INT 112<br />

GAIN BYTE 1<br />

OFFSET BYTE 1<br />

TEMPERAT FLOAT Array(10)<br />

TRMS FLOAT Array(10)<br />

TMIN FLOAT Array(10)<br />

TMAX FLOAT Array(10)<br />

VOLTAGE FLOAT Array(10)<br />

VRMS FLOAT Array(10)<br />

VMIN FLOAT Array(10)<br />

VMAX FLOAT Array(10)<br />

BLANK LONG -32768<br />

BUNIT BYTE Array(12)<br />

IMAGE FLOAT Array(32, 32, 2)<br />

8 Now that you have CDSs in memory, as an alternative to manually playing around with the data structure<br />

refer to Section 15.3.3 for a description of the CIA routine cds display.

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

Saved successfully!

Ooh no, something went wrong!