14.1 Listing file headers
A
XAS file
has a header composed by a list of
keywords,
which are normally used programmatically.
It is also possible to list the entire header at the terminal using the command
hlist [ file
which produces a listing of the form given below. It is also possible to use standard
operating system facilities to redirect the output to a file, or to restrict the output
to a limited subset of keywords
(e.g. for Unix users hlist file > outfile or hlist file | grep keyword.
This is an example of the output. The
type
of each keyword is indicated (before its
name and value) using codes
- (C) character (string)
- (I) 16-bit integer (INTEGER*2, use discouraged)
- (J) 32-bit integer (INTEGER*4)
- (R) 32-bit floating point (REAL*4)
- (D) double precision floating point (REAL*8)
File prova.spectrum of type SPE
Record length 16 bytes
Mini-header records 2
Data records 256
Full header records 73
------------------------------------------------------------------------
(J) BITPIX = 8
(J) NAXIS1 = 16
(J) NAXIS2 = 256
(J) TFIELDS = 4
(C) FILENAME = prova_spectrum
(C) OBSERVER = SAX TEAM (OP_884
(C) OBJECT = Crab
omissis...
(C) PACKET = m1dir002
(J) NPACKET = 3235
(D) EXPOSURE = 4554.62890625
(C) HISTORY = saxhaccum prova m1dir002 PHA 0 255 1 1996 9 6 19 51 9 1996 9 6 21
(C) HISTORY = + 17 20 27 60 0 255 0 255
------------------------------------------------------------------------
For a total of 48 keywords
sax.iasf-milano.inaf.it/Xashelp/handle.1.html
:: original creation 2002 Sep 04 18:10:50 CEST ::
last edit 2002 Sep 04 18:10:50 CEST