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.

16.1. CIA DATA STRUCTURE INTERFACE ROUTINES 189<br />

16.1.1.4 sad init<br />

This function initialises an SAD in memory. An example, following from the Section 16.1.1.3 is:<br />

CIA> sad1 = sad_init( ’143006010101’, ssid=ssad1, ack=ok )<br />

CIA> help, sad1, ok<br />

SAD1 STRING = ’CSAD143006010101_96080513124826’<br />

OK INT = 1<br />

The first argument is the combined number that is used to<br />

name the returned SSAD, ssad1, that is created by ssad init (see Section 15.2.1). The keyword<br />

ssid specifies the name of the SSAD we have initialised in Section 16.1.1.3, and to which sad1<br />

now belongs. A keyword argument not used here is source, whichcanbeusedtopassanalready<br />

existing SAD to sad init so as to copy its parameters to sad1.<br />

16.1.1.5 cds init<br />

This function initialises a CDS in memory. An example of its usage follows.<br />

CIA> cds1 = cds_init( ’ccgswdark’, ack=ack )<br />

CIA> help, cds1, ack<br />

STRING = ’CCDS123456789012_95012318401579’<br />

ACK INT = 1<br />

The first argument is the type of the returned CDS, cds1. The possible types of CDSs are<br />

given in Table 15.3.2.<br />

16.1.2 structure extract<br />

This function simply extracts data from a CIA structure and places it in a regular IDL structure.<br />

A simple example for an SCD is:<br />

CIA> regular_struct = scd_extract( ’CSCD143006010110_97092611592803’ )<br />

Now we can use IDL’s HELP to look at the guts of regular struct.<br />

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

etc...<br />

16.1.3 structure put<br />

Procedure to place a value in a field of a structure. This can be a useful routine when a data<br />

structure field is undefined or incorrectly defined. The fields for the relevant structure are given<br />

in Chapter 15. Note that you should be careful when using structure put. Changing a field<br />

value unnecessarily may disrupt your data. On no account change the field .NAME – it will<br />

confuse CIA memory management. Also read Section 16.4 before attempting to manipulate the<br />

MASK with scd put.<br />

As an example, the string ’EARTH’ is placed in the field .NAME of the specified SCD.<br />

CIA> scd_put, ’target’, ’EARTH’, ’CSCD143006010105_96080110071423’, ack=ack

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

Saved successfully!

Ooh no, something went wrong!