next up previous
Next: ROUTINES AND CONSTANTS
Up: OBJECTS
Previous: Value

Illustration  

To fix these ideas, look at the example below. Here we have described a structure of type `NDF' using the following notation to describe each object:

 
NAME[(dimensions)] <TYPE> [value]

Note that scalar objects have no dimensions and that each level down the hierarchy is indented.

DATASET <NDF>
   DATA_ARRAY(512,1024)    <_UBYTE>   0,0,0,1,2,3,255,3,...
   LABEL                   <_CHAR*80> 'This is the data label'
   AXIS(2) <AXIS>
      AXIS <AXIS>
         DATA_ARRAY(512)   <_REAL>    0.5,1.5,2.5,...
         LABEL             <_CHAR*30> 'Axis 1'
      AXIS <AXIS>
         DATA_ARRAY(1024)  <_REAL>    5,10,15.1,20.3,...
         LABEL             <_CHAR*10> 'Axis 2'

This example exhibits several of the properties mentioned above:



next up previous
Next: ROUTINES AND CONSTANTS
Up: OBJECTS
Previous: Value

HDS Hierarchical Data System
Starlink User Note 92
R.F. Warren-Smith & M.D. Lawden
23rd February 1999
E-mail:rfws@star.rl.ac.uk

Copyright (C) 1999 Central Laboratory of the Research Councils