Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://xmm.vilspa.esa.es/sas/6.5.0/doc/deceit/node13.html
Дата изменения: Tue Aug 16 04:24:25 2005 Дата индексирования: Sat Dec 22 08:41:59 2007 Кодировка: Поисковые слова: hawaii |
Array specifications may only appear in the body of dataset specifications. There is no limit to the number of array specifications which may appear in the array specification body. Within a dataset, array names must be unique.
The general form of an array specification is given by
array array-dimensions name array-data-type label units optional-expression < ... array item specifications ... >
where,
The header part of the array specification array array-dimensions name array-data-type label units optional-expression must be placed onto a single line. This is due to a limitation of the parser. The subsequent body, which is delimited by and , is optional but, if present, must begin on a new line.
The array specification body comprises zero or more of the following specification:
The final optional expression can be used to direct deceit to execut a function. The function is executed when the interpreter reaches the end of the array specification block. The variable arr is a pointer to the array and may be referenced in the expression. For example,
dataset "ds1" < array(10,20) "arr1" int32 "an integer array" "m" fillArray(arr,"somefile") < attribute "att1" int 10 "an integer attribute" "Nm" > >
where fillArray is a user-defined function (see 3.3) that takes a pointer to an array, and fills it with data from somefile.
XMM-Newton SOC/SSC -- 2005-08-16