Next Previous Up Contents
Next: coneskymatch: Crossmatches table on sky position against remote cone service
Up: cone: Executes a Cone Search-like query
Previous: Usage

B.4.2 Examples

Here are some examples of cone:

stilts cone serviceurl=http://gaia.ari.uni-heidelberg.de/cone/search
            lon=56.75 lat=24.12 radius=0.8
            out=pleiades.fits
Queries the ARI-Gaia cone search service for sources within 0.8 of the given sky position, and writes the result to a file.
stilts cone serviceurl=http://gaia.ari.uni-heidelberg.de/cone/search
            lon=56.75 lat=24.12 radius=0.8
            verb=1
            ocmd='sorthead 10 phot_g_mean_mag'
            ocmd='keepcols "source_id ra dec phot_g_mean_mag"'
This does the same basic query as the previous example, but post-processes the result so that a limited amount of data (source identifier, position and magnitude) for only the ten brightest sources is written to the console. Since most of the columns are discarded, we specify verb=1 which indicates to the service that only a minimal column set is required in the query result.
stilts -verbose
       cone servicetype=ssa serviceurl='http://archive.eso.org/ssap'
            lon=0 lat=90 radius=1.0 skysys=galactic
            omode=count
Queries the ESO Simple Spectral Access service for spectra within one degree of the northern galactic pole. The omode=count parameter means that it just counts the rows and columns and prints the numbers to the console. The -verbose flag means that (amongst other things) the full URL that the command used to make the query will be logged to the console.


Next Previous Up Contents
Next: coneskymatch: Crossmatches table on sky position against remote cone service
Up: cone: Executes a Cone Search-like query
Previous: Usage

STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note256
STILTS web page: http://www.starlink.ac.uk/stilts/
Author email: m.b.taylor@bristol.ac.uk
Mailing list: topcat-user@jiscmail.ac.uk