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.

190 CHAPTER 16. DATA STRUCTURE MANIPULATION<br />

16.1.4 structure get<br />

Function to return a value of a specified field of a structure. Following from the example in<br />

Section 16.1.3, the value of the field NAME is extracted.<br />

CIA> help, scd_get( ’name’, ’CSCD143006010105_96080110071423’ ), ack<br />

STRING = ’EARTH’<br />

ACK INT = 1<br />

See Section 2.4 for restrictions of use.<br />

16.1.5 structure write<br />

Procedure to write a specified structure to a file. The filename will be the name of the structure<br />

with .cub appended. When using sscd write and ssad write the entire set of SCDs or SADs<br />

are written to disk. In the example below a single SCD is written to disk in the directory<br />

product dir (see Section 17.1.1).<br />

CIA> scd_write, ’CSCD143006010105_96080110071423’, dir=scd_dir, ack=ack<br />

CIA> help, ack<br />

ACK INT = 1<br />

See Section 2.4 for restrictions of use.<br />

16.1.6 structure read<br />

Function to read a named structure from disk. A pointer to the structure is returned. Our<br />

example below follows from that of Section 16.1.5.<br />

CIA> scd = scd_read( ’CSCD143006010105_96080110071423’, dir=scd_dir, ack=ack )<br />

16.1.7 structure list<br />

Function to return the a list of structures of type structure in memory. Following from Section<br />

16.1.6 our example lists the SCDs in memory.<br />

CIA> print, scd_list( num=no_scds, ack=ack )<br />

CSCD143006010105_96080110071423<br />

etc...<br />

CIA> help, no_scds, ack<br />

NO_SCDS INT = 42<br />

ACK INT = 1<br />

The keyword num returns the number of scds found.

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

Saved successfully!

Ooh no, something went wrong!