Next: Accessing header items using different data types
Up: Examples of using HDR from C
Previous: Reading header items
This example
(hdrwrite.c)
shows how to write a header item to an image.
/* Write the header item. */
hdrOut( "out", " ", "OBSERVER", "The observer.", "Fred Bloggs", 0, istat ); [1]
/* Free the image. */
imgFree( "out", istat );
The following notes refer to the numbered statements:
- 1.
- Note the extra argument which is set to 0. This indicates that a
single string ("Fred Bloggs") has been passed. This could also
have been set to the value 12, the string length. This argument is of
more significance when dealing with multiple images.
Next: Accessing header items using different data types
Up: Examples of using HDR from C
Previous: Reading header items
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