Here are some examples of regquery
:
stilts regquery query="identifier like '%astrogrid%'" out=ag.xml
identifier
field contain the string
"astrogrid
". The '%
' characters function
as wildcards for the like
operator.
The output is written to a local VOTable file which can be examined
or further processed later.
stilts regquery query="serviceType = 'SSAP'" omode=count
serviceType
fields equal the string SSAP
(this identifies services which support the Simple Spectral Access
Protocol). These records are not stored, but the
omode=count
output mode counts the rows.
This therefore tells you how many SSAP servers are registered.
stilts regquery query="serviceType = 'CONE' and title like '%Sloan%'" \ ocmd="keepcols 'shortName serviceUrl'" \ ofmt=ascii out=-
keepcols
filter takes the result and throws away
all the columns except for shortName
and
serviceUrl
, and these are written to the terminal
in ASCII format. This may be useful to find the service URL
for a cone search service with particular data for use with
the multicone
command.