1
% @(#)read_desc.hlq 19.1 (ESO-IPG) 02/25/03 14:03:37
2
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3
%.COPYRIGHT (c) 1990 European Southern Observatory
6
%.KEYWORDS MIDAS, help files, READ/DESCR
7
%.PURPOSE On-line help file for the command: READ/DESCR
8
%.VERSION 1.0 13-APR-1984 : Creation, KB
9
%----------------------------------------------------------------
13
READ/DESCR 25-JUL-2000 KB
15
READ/DESCR name [descr_list] [disp_flag]
16
display descriptor values of frame or table
19
Display descriptor values of Midas image or table
20
or FITS header of FITS file.
23
Descriptors, Data frames, Tables
26
READ/DESCR name [descr_list] [disp_flag]
28
name = name of data frame holding descriptor;
29
default file type is .bdf; so if you want to see the descriptors
30
of a table, you have to append also the type (e.g.: `.tbl')
33
descr_list = descriptor name(s) or pattern(s) separated by a comma,
35
or `*' to display all descriptors,
37
or patternA|patternB (character `|' as used for OR in C or the
38
pipe symbol in Unix) to display all descriptors with names
39
matching patternA but not patternB,
41
or 'name.ascii' if ASCII file `name.ascii' contains the
42
descriptors to be read (file type .ascii is required);
44
defaulted to the list of standard descriptors of images or tables
46
disp_flag = B(rief) or F(ull) or H(ide Header Info);
48
B: show only desriptor name(s) and value(s)
50
F: show also descriptor type and no. of elements as well as
51
related help text if available;
53
H: show only desriptor value(s)
58
WRITE/DESCR, SHOW/DESCR, PRINT/DESCR, DELETE/DESCR, COPY/DD
63
For patterns there are the following possibilities:
65
`abc*' => all descr. beginning with `abc' match
67
`*abc' => all descr. ending with `abc' match
69
`*abc*' => all descr. containing `abc' match
71
`abc*def' => all descr. beginning with `abc' and ending
72
with `def' match the pattern.
74
If all descriptors of the frame are displayed (descr_list = '*')
75
you can also exclude (up to 4) descriptors which should NOT be
76
displayed, by adding their names separated by a comma, or a
77
single pattern (see above) defining them.
79
If descr_list is set to a specific descr. name, also the first
80
4(5) elements of integer keyword OUTPUTI are filled:
82
OUTPUTI(1) = 1 or 0, if specified descr. exists or not.
84
If OUTPUTI(1) is 1, then (2) = descr. type (1,2,3 or 4 for
85
integer, real, character or double descr);
86
(3) and (4) hold no. of elements and bytes per element of
88
And if `disp_flag' was set to Full, OUTPUTI(5) contains the
89
size of the help text of the descriptor (-1, if no help).
90
This information can then be used in a procedure.
91
For a description of the standard descriptors of an image or
92
a table, see the MIDAS Environment document, Appendix C.
96
READ/DESCR durazno STEP
97
Display contents of descriptor STEP of frame `durazno.bdf'.
99
READ/DESCR durazno start,step full
100
Display descriptors STEP and START of frame `durazno.bdf' in
101
extended format. Also, display the corresponding help text if
104
READ/DESCR naranja.tbl *
105
Display all descriptors of table file `naranja.tbl'.
107
READ/DESCR fresa *,histogram,hist_bins
108
Display all descriptors of image `fresa.bdf' except the two
109
descriptors HISTOGRAM and HIST_BINS.
111
READ/DESCR fresa *,histo*
112
Display all descriptors of image `fresa.bdf' except all
113
descriptors beginning with HISTO (so also HISTORY would not be
116
READ/DESCR manzana naxis,*det*
117
Display descr. NAXIS and all descriptors of frame `manzana.bdf'
118
with names containing `DET', e.g. ESO.DET.CHIP1.PSZX.
120
READ/DESCR pera ESO.*|*.det.*
121
Display all hierarchical ESO keywords of `pera.bdf' except those
122
containing `DET', e.g. ESO.DET.CHIP1.PSZX would not be shown.
124
READ/DESCR platano papaya.ascii
125
Display all descriptors which are in the ASCII file `papaya.ascii'
126
E.g. if `papaya.ascii' contains the two records:
128
naxis,npix,start,step
132
the descriptors NAXIS, NPIX, START, STEP and HISTORY of frame
133
`platano.bdf' would be displayed.