aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/doc/votinfo.html
blob: 3566c0d1e3b0c4c74f0395d36aef484912948ee7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
Content-type: text/html

<HTML><HEAD><TITLE>Manpage of VOTINFO</TITLE>
</HEAD><BODY>
<H1>VOTINFO</H1>
Section: User Commands  (1)<BR>Updated: Feb 2013<BR><A HREF="#index">Index</A>
<A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

votinfo - Get information about a VOTable
<P>
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>votinfo</B> [&lt;opts&gt;] votable.xml
<P>
<A NAME="lbAD">&nbsp;</A>
<H2>OPTIONS</H2>

The <I>votinfo</I> task accepts the following options:
<DL COMPACT>
<DT><B>-h, --help</B>

<DD>
Print a help summary to the terminal and exit.  No processing is done 
following this flag.
<P>
<DT><B>-b,--brief</B>

<DD>
Print only brief output about the table.
<DT><B>-d,--description</B>

<DD>
Print the toplevel &lt;DESCRIPTION&gt; element of the VOTable.
<DT><B>-i,--info</B>

<DD>
Print all &lt;INFO&gt; elements in the VOTable. Parameters are printed as 
<I>name=value</I> pairs,, if there is no output it is
implied there are no &lt;INFO&gt; elements in the document.
<DT><B>-n </B><I>WHAT</I>,--numberOf <I>WHAT</I>

<DD>
Get number of elements specified by <I>WHAT</I>.  The <I>WHAT</I> must be a
valid VOTable element name.
<DT><B>-p,--param</B>

<DD>
Print all &lt;PARAM&gt; elements in the VOTable.  Parameters are printed as
<I>name=value</I> pairs, if there is no output it is implied there are no
&lt;PARAM&gt; elements in the document.
<DT><B>-q,--query_status</B>

<DD>
Get the 'QUERY_STATUS' &lt;INFO&gt; value, a value of zero is returned of the 
value is OK, or one if it is an ERROR.
<DT><B>-s,--size</B>

<DD>
Print the table size as &lt;nrows&gt; and &lt;ncols&gt; values.  In a multi-RESOURCE
VOTable only results for the first table are returned.
<DT><B>-v,--verbose</B>

<DD>
Print verbose otuput.
<DT><B>-w,--warn</B>

<DD>
Print VOTable parser warning messages.
<P>
<P>
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>

The <I>votinfo</I> task is used to either print a summary of a VOTable's
structure, or to get specific attributes of a VOTable (e.g. the size of
a table, number of parameters, etc).  The <I>-n WHAT</I> flag is used to query 
for the number of <I>WHAT</I> elements in the document, allow values of WHAT
include:
<P>

<I>param<TT>&nbsp;&nbsp;</TT></I>

number of &lt;PARAM&gt; elements<BR>

<I>info<TT>&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT></I>

number of &lt;INFO&gt; elements<BR>

<I>rows<TT>&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT></I>

number of table rows<BR>

<I>cols<TT>&nbsp;&nbsp;&nbsp;</TT><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT></I>

number of table cols<BR>

<I>resources<TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TT></I>

number of &lt;RESOURCE&gt; elements<BR>
<P>
<P>

The VOTable &lt;PARAM&gt; elements may be printed using the <I>-p</I> flag,
similarly &lt;INFO&gt; elements can be printed using <I>-i</I>.
<P>
If no input file is specified the VOTable will be read from the stdin,
results will be written to stdout unless the <I>-o</I> (or <I>--output</I>)
names an output file.  The task will only process a single VOTable and may
not be used to convert multiple files in a single call.
<P>
<A NAME="lbAF">&nbsp;</A>
<H2>RETURN STATUS</H2>

On exit the <B>votinfo</B> task will return a zero indicating success, or a
one indicating an error.
<P>
<A NAME="lbAG">&nbsp;</A>
<H2>EXAMPLES</H2>

<DL COMPACT>
<DT>1)  Print verbose summary information about a VOTable<DD>
<P>
<PRE>
    % votinfo -v test.xml
</PRE>

<DT>2)  Print the &lt;PARAM&gt; elements in a table, then get a count<DD>
<P>
<PRE>
    % votinfo -p test.xml
    % votinfo --numberOf=param test.xml
</PRE>

<DT>3)  Determine whether a VOTable contains a successful result<DD>
<P>
<PRE>
    % votinfo -q test.xml
</PRE>

<P>
A zero indicates 'OK', a one is an 'ERR', and -1 means that an &lt;INFO&gt; with a 'QUERY_STATUS' was not found
<P>
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>BUGS</H2>

The task doesn't always work intuitively with multi-resource VOTables.
<A NAME="lbAI">&nbsp;</A>
<H2>Revision History</H2>

Feb 2013 - First public release
<A NAME="lbAJ">&nbsp;</A>
<H2>Author</H2>

Michael Fitzpatrick (<A HREF="mailto:fitz@noao.edu">fitz@noao.edu</A>), Feb 2013
<A NAME="lbAK">&nbsp;</A>
<H2>SEE ALSO</H2>

votget, votget, votpos, votsort, votstat
<P>
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">OPTIONS</A><DD>
<DT><A HREF="#lbAE">DESCRIPTION</A><DD>
<DT><A HREF="#lbAF">RETURN STATUS</A><DD>
<DT><A HREF="#lbAG">EXAMPLES</A><DD>
<DT><A HREF="#lbAH">BUGS</A><DD>
<DT><A HREF="#lbAI">Revision History</A><DD>
<DT><A HREF="#lbAJ">Author</A><DD>
<DT><A HREF="#lbAK">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 05:13:26 GMT, April 14, 2013
</BODY>
</HTML>