next up previous 231
Next: Handling ``bad'' data
Up: More advanced image access
Previous: Accessing multiple images

Creating multiple images

IMG can also create more than one image using a single subroutine call. Some possibilities are:
      CALL IMG_NEW( 'MODEL1,MODEL2', 1024, 1024, IP, ISTAT )  [1]
      CALL IMG_OUT( 'TEMPLATE', 'OUT1,OUT2', IP, ISTAT )      [2]
      CALL IMG_TMP( 'T1,T2,T3,T4', NX, NY, IP, ISTAT )        [3]
The following notes refer to the numbered statements:
1.
The call to IMG_NEW creates two new images with size 1024  x  1024. The variable IP should be declared as an INTEGER array of size 2.

2.
The image associated with parameter 'TEMPLATE' is copied to two new images 'OUT1' and 'OUT2'. Again, the pointers are returned in an array IP(2).

3.
Four temporary images of the same size and type are created.



next up previous 231
Next: Handling ``bad'' data
Up: More advanced image access
Previous: Accessing multiple images

IMG Simple Image Data Access
Starlink User Note 160
P.W. Draper
R.F. Warren-Smith
3 March 2003
E-mail:P.W.Draper@durham.ac.uk

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