.TH STILTS-TAPSKYMATCH 1 "Mar 2017" "" "Stilts commands" .SH NAME stilts-tapskymatch \- Crossmatches table on sky position against TAP table .SH SYNOPSIS .ad l .HP 19 .hy 0 \fBstilts tapskymatch\fR [ifmt=\fI\fR] [istream=\fItrue|false\fR] [in=\fI\fR] [icmd=\fI\fR] [ocmd=\fI\fR] [omode=\fIout|meta|stats|count|checksum|cgi|discard|topcat|samp|tosql|gui\fR] [out=\fI\fR] [ofmt=\fI\fR] [inlon=\fI\fR] [inlat=\fI\fR] [tapurl=\fI\fR] [interface=\fItap1.0|tap1.1|cap\fR] [taptable=\fI\fR] [taplon=\fI\fR] [taplat=\fI\fR] [tapcols=\fI\fR] [sr=\fI\fR] [find=\fIall|best|each|each-dist\fR] [blocksize=\fI\fR] [maxrec=\fI\fR] [sync=\fItrue|false\fR] [blockmaxrec=\fI\fR] [compress=\fItrue|false\fR] [fixcols=\fInone|dups|all\fR] [suffixin=\fI
\fR .RS The location of the input table. This may take one of the following forms: .RS 2 .IP * 2 A filename. .IP * 2 A URL. .IP * 2 The special value "\fI-\fR", meaning standard input. In this case the input format must be given explicitly using the \fIifmt\fR parameter. Note that not all formats can be streamed in this way. .IP * 2 A scheme specification of the form \fI::\fR. .IP * 2 A system command line with either a "\fI<\fR" character at the start, or a "\fI|\fR" character at the end ("\fI\fR .RS Specifies processing to be performed on the input table as specified by parameter \fIin\fR, before any other processing has taken place. The value of this parameter is one or more of the filter commands described in SUN/256. If more than one is given, they must be separated by semicolon characters (";"). This parameter can be repeated multiple times on the same command line to build up a list of processing steps. The sequence of commands given in this way defines the processing pipeline which is performed on the table. .PP Commands may alteratively be supplied in an external file, by using the indirection character '@'. Thus a value of "\fI@filename\fR" causes the file \fIfilename\fR to be read for a list of filter commands to execute. The commands in the file may be separated by newline characters and/or semicolons, and lines which are blank or which start with a '\fI#\fR' character are ignored. .RE .TP \fBocmd=\fI\fR .RS Specifies processing to be performed on the output table, after all other processing has taken place. The value of this parameter is one or more of the filter commands described in SUN/256. If more than one is given, they must be separated by semicolon characters (";"). This parameter can be repeated multiple times on the same command line to build up a list of processing steps. The sequence of commands given in this way defines the processing pipeline which is performed on the table. .PP Commands may alteratively be supplied in an external file, by using the indirection character '@'. Thus a value of "\fI@filename\fR" causes the file \fIfilename\fR to be read for a list of filter commands to execute. The commands in the file may be separated by newline characters and/or semicolons, and lines which are blank or which start with a '\fI#\fR' character are ignored. .RE .TP \fBomode=\fIout|meta|stats|count|checksum|cgi|discard|topcat|samp|tosql|gui\fR .RS The mode in which the result table will be output. The default mode is \fIout\fR, which means that the result will be written as a new table to disk or elsewhere, as determined by the \fIout\fR and \fIofmt\fR parameters. However, there are other possibilities, which correspond to uses to which a table can be put other than outputting it, such as displaying metadata, calculating statistics, or populating a table in an SQL database. For some values of this parameter, additional parameters (\fI\fR) are required to determine the exact behaviour. .PP Possible values are .RS 2 .IP * 2 \fIout\fR .IP * 2 \fImeta\fR .IP * 2 \fIstats\fR .IP * 2 \fIcount\fR .IP * 2 \fIchecksum\fR .IP * 2 \fIcgi\fR .IP * 2 \fIdiscard\fR .IP * 2 \fItopcat\fR .IP * 2 \fIsamp\fR .IP * 2 \fItosql\fR .IP * 2 \fIgui\fR .RE Use the \fIhelp=omode\fR flag or see SUN/256 for more information. .RE .TP \fBout=\fI\fR .RS The location of the output table. This is usually a filename to write to. If it is equal to the special value "-" (the default) the output table will be written to standard output. .PP This parameter must only be given if \fIomode\fR has its default value of "\fIout\fR". .RE .TP \fBofmt=\fI\fR .RS Specifies the format in which the output table will be written (one of the ones in SUN/256 - matching is case-insensitive and you can use just the first few letters). If it has the special value "\fI(auto)\fR" (the default), then the output filename will be examined to try to guess what sort of file is required usually by looking at the extension. If it's not obvious from the filename what output format is intended, an error will result. .PP This parameter must only be given if \fIomode\fR has its default value of "\fIout\fR". .RE .TP \fBinlon=\fI\fR .RS Longitude in degrees for the position of each row in the input table. This may simply be a column name, or it may be an algebraic expression as explained in SUN/256. The coordinate system must match that used for the coordinates in the remote table. .RE .TP \fBinlat=\fI\fR .RS Longitude in degrees for the position of each row in the input table. This may simply be a column name, or it may be an algebraic expression as explained in SUN/256. The coordinate system must match that used for the coordinates in the remote table. .RE .TP \fBtapurl=\fI\fR .RS The base URL of a Table Access Protocol service. This is the bare URL without a trailing "/[a]sync". .PP In the usual case, the default values of the various endpoints (sync and async query submission, tables metadata, service-provided examples etc) use this URL as a parent and append standard sub-paths. .PP In some cases however, determination of the endpoints is more complicated, as determined by the \fIinterface\fR parameter which may cause endpoints to be read from the capabilities document at \fItapurl/capabilities\fR, and by other endpoint-specific parameters (\fIsyncurl\fR, \fIasyncurl\fR, \fItablesurl\fR, \fIcapabilitiesurl\fR, \fIavailabilityurl\fR, \fIexamplesurl\fR) for fine tuning. .RE .TP \fBinterface=\fItap1.0|tap1.1|cap\fR .RS Defines how the service endpoints and the version of the TAP protocol to use for queries is determined. This may take one of the following (case-insensitive) values: .RS 2 .IP * 2 \fITAP1.0\fR: The standard TAP endpoints are used, without examining the service's capabilities document. The service is queried using version 1.0 of the TAP protocol. .IP * 2 \fITAP1.1\fR: The standard TAP endpoints are used, without examining the service's capabilities document. The service is queried using version 1.1 of the TAP protocol. .IP * 2 \fIcap\fR: The service's capabilities document is examined, and the endpoints listed there are used. .RE .PP The capabilities document, if used, is read from \fItapurl\fR/capabilities unless the \fIcapabilitiesurl\fR parameter is defined, in which case that is used. .PP The baseline value of all the TAP service endpoints (\fIsync\fR, \fIasync\fR, \fItables\fR, \fIcapabilities\fR, \fIexamples\fR) are determined by this parameter, but each of those endpoint values may be overridden individually by other endpoint-specific parameters (\fIsyncurl\fR, \fIasyncurl\fR, \fItablesurl\fR, \fIcapabilitiesurl\fR, \fIavailabilityurl\fR, \fIexamplesurl\fR) .PP For default (unauthenticated) access, the default value is usually suitable. .RE .TP \fBtaptable=\fI\fR .RS Name of the table in the given TAP service against which the matching will be performed. .RE .TP \fBtaplon=\fI\fR .RS Longitude in degrees for the position of each row in the remote table. This is an ADQL expression interpreted within the TAP service, typically just a column name. The coordinate system must match that used for the input table. .RE .TP \fBtaplat=\fI\fR .RS Latitude in degrees for the position of each row in the remote table. This is an ADQL expression interpreted within the TAP service, typically just a column name. The coordinate system must match that used for the input table. .RE .TP \fBtapcols=\fI\fR .RS Comma-separated list of column names to retrieve from the remote table. If no value is supplied (the default), all columns from the remote table will be returned. .RE .TP \fBsr=\fI\fR .RS Maximum distance in degrees from the local table (lat,lon) position at which counterparts from the remote table will be identified. This is an ADQL expression interpreted within the TAP service, so it may be a constant value or may involve columns in the remote table. .RE .TP \fBfind=\fIall|best|each|each-dist\fR .RS Determines which pair matches are included in the result. .RS 2 .IP * 2 \fIall\fR: All matches .IP * 2 \fIbest\fR: Matched rows, best remote row for each input row .IP * 2 \fIeach\fR: One row per input row, contains best remote match or blank .IP * 2 \fIeach-dist\fR: One row per input row, column giving distance only for best match .RE Note only the \fIall\fR mode is symmetric between the two tables. .RE .TP \fBblocksize=\fI\fR .RS The number of rows uploaded in each TAP query. TAP services may have limits on the number of rows in a table uploaded for matching. This command can therefore break up input tables into blocks and make a number of individual TAP queries to generate the result. This parameter controls the maximum number of rows uploaded in each individual request. For an input table with fewer rows than this value, the whole thing is done as a single query. .RE .TP \fBmaxrec=\fI\fR .RS Limit to the number of rows resulting from this operation. If the value is negative (the default) no limit is imposed. Note however that there can be truncation of the result if the number of records returned from a single chunk exceeds limits imposed by the service. .RE .TP \fBsync=\fItrue|false\fR .RS Determines whether the TAP queries are submitted in synchronous or asynchronous mode. Since this command uses chunking to keep requests to a reasonable size, hopefully requests will not take too long to execute, therefore the default is synchronous (true). .RE .TP \fBblockmaxrec=\fI\fR .RS Sets the MAXREC parameter passed to the TAP service for each uploaded block. This allows you to request that the service overrides its default limit for the number of rows output from a single query. The service may still impose some "hard" limit beyond which the output row count cannot be increased. .PP Note this differs from the \fImaxrec\fR parameter, which gives the maximum total number of rows to be returned from this command. .RE .TP \fBcompress=\fItrue|false\fR .RS If true, the service is requested to provide HTTP-level compression for the response stream (Accept-Encoding header is set to "\fIgzip\fR", see RFC 2616). This does not guarantee that compression will happen but if the service honours this request it may result in a smaller amount of network traffic at the expense of more processing on the server and client. .RE .TP \fBfixcols=\fInone|dups|all\fR .RS Determines how input columns are renamed before use in the output table. The choices are: .RS 2 .IP * 2 \fInone\fR: columns are not renamed .IP * 2 \fIdups\fR: columns which would otherwise have duplicate names in the output will be renamed to indicate which table they came from .IP * 2 \fIall\fR: all columns will be renamed to indicate which table they came from .RE If columns are renamed, the new ones are determined by \fIsuffix*\fR parameters. .RE .TP \fBsuffixin=\fI