STILTS-PIXSAMPLE(1) | Stilts commands | STILTS-PIXSAMPLE(1) |
NAME¶
stilts-pixsample - Samples from a HEALPix pixel data file
SYNOPSIS¶
stilts pixsample [in=<table>] [ifmt=<in-format>] [icmd=<cmds>] [pixdata=<pix-table>] [pfmt=<in-format>] [pcmd=<cmds>] [ocmd=<cmds>] [omode=out|meta|stats|count|checksum|cgi|discard|topcat|samp|tosql|gui] [out=<out-table>] [ofmt=<out-format>] [pixorder=nested|ring|(auto)] [stat=point|mean] [lon=<expr>] [lat=<expr>] [insys=icrs|fk5|fk4|galactic|supergalactic|ecliptic] [pixsys=icrs|fk5|fk4|galactic|supergalactic|ecliptic] [radius=<expr>]
DESCRIPTION¶
pixsample samples data at the sky position represented by each row from an all-sky map contained in a HEALPix-format pixel data file. Such files are actually tables (usually in FITS format) in which the row number corresponds to a HEALPix pixel index, and the pixel values are cell contents; one or more columns may be present containing values for one or more all-sky maps. The result of this command is to add a column to the input table representing the pixel data at the position of each input row for each of the data columns in the HEALPix table.
This command does not attempt to convert between coordinate systems except as instructed, so it is important to know what coordinate system the HEALPix file is in, and ensure that the coordinates supplied from the input table match this. You may need to examine the documentation or headers of the HEALPix file in question to find out. See the Examples section for some examples.
There is a choice of how the sampling is done; the simplest way is just to use the value of the pixel covering the indicated position. An alternative is to average over a disc of given radius (perhaps a function of the input row). Other options (e.g. max/min) could easily be added.
Although HEALPix is not a common format for storing image data in general, it is used for storing a number of important all-sky data sets such as the WMAP results and Schlegel dust maps. The NASA LAMBDA (Legacy Archive for Microwave Background Data Analysis) archive has a number of maps in a suitable format, including foreground data like predicted reddening as well as CMB maps.
Note at present this command only supports all-sky, not partial, HEALPix maps. Partial map support may be added at some point in the future if there is demand.
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 alternatively 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. A backslash character '\fR' at the end of a line joins it with the following line.
Some HEALPix format FITS tables seem to have rows which contain 1024-element arrays of pixels instead of single pixel values. This (rather perverse?) format is not currently supported here, but if there is demand support could be added.
Commands may alternatively 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. A backslash character '\fR' at the end of a line joins it with the following line.
Commands may alternatively 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. A backslash character '\fR' at the end of a line joins it with the following line.
Possible values are
- out
- meta
- stats
- count
- checksum
- 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".
- point: Uses the value at the pixel covering the supplied position. In this case the radius parameter is not used.
- mean: Averages the values over all the pixels within a radius given by the radius parameter. This averaging is somewhat approximate; all pixels which are mostly within the radius are averaged with equal weights.
The available coordinate systems are:
- icrs: ICRS (Right Ascension, Declination)
- fk5: FK5 J2000.0 (Right Ascension, Declination)
- fk4: FK4 B1950.0 (Right Ascension, Declination)
- galactic: IAU 1958 Galactic (Longitude, Latitude)
- supergalactic: de Vaucouleurs Supergalactic (Longitude, Latitude)
- ecliptic: Ecliptic (Longitude, Latitude)
The available coordinate systems are:
- icrs: ICRS (Right Ascension, Declination)
- fk5: FK5 J2000.0 (Right Ascension, Declination)
- fk4: FK4 B1950.0 (Right Ascension, Declination)
- galactic: IAU 1958 Galactic (Longitude, Latitude)
- supergalactic: de Vaucouleurs Supergalactic (Longitude, Latitude)
- ecliptic: Ecliptic (Longitude, Latitude)
Not used if stat=point.
SEE ALSO¶
If the package stilts-doc is installed, the full documentation
SUN/256 is available in HTML format:
file:///usr/share/doc/stilts/sun256/index.html
VERSION¶
STILTS version 3.5.1-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 |