next up previous
Next: Conditional NDF Creation
Up: ACCESSING NDFS FOR OUTPUT
Previous: Using Existing NDFs

Creating New NDFs via Parameters   

An alternative method of obtaining an NDF for output is to create an entirely new one. The NDF_CREAT routine will perform this task. For instance:

      INTEGER NDIM, LBND( NDIM ), UBND( NDIM )

      ...

      CALL NDF_CREAT( 'OUT', '_REAL', NDIM, LBND, UBND, INDF, STATUS )

will create a new NDF and associate it with the parameter `OUT'. If you are using ADAM, a similar interface file entry to that in §[*] would be required, except that `WRITE' access would be specified in this case.

This example will create a simple, real NDF; i.e. one whose data and variance components will be stored as `_REAL' arrays, and whose array components will have a storage form of `SIMPLE' (see §[*]). Its dimensionality and pixel-index bounds are specified by the NDIM, LBND and UBND arguments. Initially, all its components will be in an undefined state.



next up previous
Next: Conditional NDF Creation
Up: ACCESSING NDFS FOR OUTPUT
Previous: Using Existing NDFs


Starlink User Note 33
R.F. Warren-Smith
11th January 2000
E-mail:rfws@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils