STILTS-TSKYMAP(1) | Stilts commands | STILTS-TSKYMAP(1) |
NAME¶
stilts-tskymap - Calculates sky density maps
SYNOPSIS¶
stilts tskymap [ifmt=<in-format>] [istream=true|false] [in=<table>] [icmd=<cmds>] [ocmd=<cmds>] [omode=out|meta|stats|count|cgi|discard|topcat|samp|tosql|gui] [out=<out-table>] [ofmt=<out-format>] [lon=<expr/deg>] [lat=<expr/deg>] [tiling=hpx<K>|healpixnest<K>|healpixring<K>|htm<K>] [count=true|false] [cols=<expr> ...] [combine=sum|sum-per-unit|count|count-per-unit|mean|median|min|max|stdev|hit] [perunit=steradian|degree2|arcmin2|arcsec2|mas2|uas2] [complete=true|false]
DESCRIPTION¶
tskymap calculates a weighted density map (or, to put it another way, a histogram) on the sky from columns of an input table. The sky is divided up into some discrete set of tiles according to a specified tessellation scheme (currently HEALPix or HTM are supported), and the required quantities are aggregated into bins corresponding to these tiles. The output table has a column giving the pixel index identifying each tile, plus one or more columns each representing an aggregation of a quantity from the input table.
By default the number of rows from the input table falling within each tile is included as the first column in the output table. But by specifying the cols and combine parameters you can add more columns giving the sum, mean, median or other statistics of input table columns or expressions as well.
The output table can then, for instance, be plotted using plot2sky's healpix layer type (though an alternative is to do that plot directly using a skydensity layer).
In the case of HEALPix tiling, the result can also be output in a FITS file suitable for use by external applications that understand the semi-standard FITS-Healpix convention. Note in this case, for maximum compatibility, the fits-healpix output format should in general be used.
OPTIONS¶
- A filename.
- A URL.
- The special value "-", meaning standard input. In this case the input format must be given explicitly using the ifmt parameter. Note that not all formats can be streamed in this way.
- A scheme specification of the form :<scheme-name>:<scheme-args>.
- A system command line with either a "<" character at the start, or a "|" character at the end ("<syscmd" or "syscmd|"). This executes the given pipeline and reads from its standard output. This will probably only work on unix-like systems.
In any case, compressed data in one of the supported compression formats (gzip, Unix compress or bzip2) will be decompressed transparently.
Commands may alteratively be supplied in an external file, by using the indirection character '@'. Thus a value of "@filename" causes the file filename 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 '#' character are ignored.
Commands may alteratively be supplied in an external file, by using the indirection character '@'. Thus a value of "@filename" causes the file filename 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 '#' character are ignored.
Possible values are
- out
- meta
- stats
- count
- cgi
- discard
- topcat
- samp
- tosql
- gui
Use the help=omode flag or see SUN/256 for more information.
This parameter must only be given if omode has its default value of "out".
This parameter must only be given if omode has its default value of "out".
- hpxK: alias for healpixnestK
- healpixnestK: HEALPix using the Nest scheme at order K
- healpixringK: HEALPix using the Ring scheme at order K
- htmK: Hierarchical Triangular Mesh at level K
So for instance hpx5 or healpixnest5 would both indicate the HEALPix NEST tiling scheme at order 5.
At level K, there are 12*4^K HEALPix pixels, or 8*4^K HTM pixels on the sky. More information about these tiling schemes can be found at the HEALPix and HTM web sites.
- sum: the sum of all the combined values per bin
- sum-per-unit: the sum of all the combined values per unit of bin size
- count: the number of non-blank values per bin (weight is ignored)
- count-per-unit: the number of non-blank values per unit of bin size (weight is ignored)
- mean: the mean of the combined values
- median: the median of the combined values (may be slow)
- min: the minimum of all the combined values
- max: the maximum of all the combined values
- stdev: the sample standard deviation of the combined values
- hit: 1 if any values present, NaN otherwise (weight is ignored)
For density-like values (count-per-unit, sum-per-unit) the scaling is additionally influenced by the perunit parameter.
Possible values are:
- steradian: steradian
- degree2: square degree
- arcmin2: square arcminute
- arcsec2: square arcsecond
- mas2: square milliarcsec
- uas2: square microarcsec
The value of this parameter may affect performance as well as output. If you know that most pixels on the sky will be covered, it's probably a good idea to set this true, and if you know that only a small patch of sky will be covered, it's better to set it false.
SEE ALSO¶
If the package stilts-doc is installed, the full documentation
SUN/256 is available in HTML format:
file:///usr/share/doc/stilts-doc/sun256/index.html
VERSION¶
STILTS version 3.4-debian
This is the Debian version of Stilts, which lack the support of
some file formats and network protocols. For differences see
file:///usr/share/doc/stilts/README.Debian
AUTHOR¶
Mark Taylor (Bristol University)
Mar 2017 |