The usage of pixsample
is
stilts <stilts-flags> 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|plastic|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>If you don't have the
stilts
script installed,
write "java -jar stilts.jar
" instead of
"stilts
" - see Section 3.
The available <stilts-flags>
are listed
in Section 2.1.
For programmatic invocation,
the Task class for this
command is uk.ac.starlink.ttools.task.PixSample
.
Parameter values are assigned on the command line as explained in Section 2.3. They are as follows:
icmd = <cmds>
(ProcessingStep[])
in
,
before any other processing has taken place.
The value of this parameter is one or more of the filter
commands described in Section 6.1.
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.
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.
ifmt = <in-format>
(String)
in
.
The known formats are listed in Section 5.1.1.
This flag can be used if you know what format your
table is in.
If it has the special value
(auto)
(the default),
then an attempt will be
made to detect the format of the table automatically.
This cannot always be done correctly however, in which case
the program will exit with an error explaining which
formats were attempted.
This parameter is ignored for scheme-specified tables.
[Default: (auto)
]
in = <table>
(StarTable)
-
",
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.:<scheme-name>:<scheme-args>
.<
" 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.insys = icrs|fk5|fk4|galactic|supergalactic|ecliptic
(SkySystem)
lon
/lat
parameters.
If the sample positions are given
in the same coordinate system as that given by
the pixel data table, both the insys
and pixsys
parameters may be set null
.
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)lat = <expr>
(String)
insys
and pixsys
parameters.
lon = <expr>
(String)
insys
and pixsys
parameters.
ocmd = <cmds>
(ProcessingStep[])
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.
ofmt = <out-format>
(String)
(auto)
"
(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.
This parameter must only be given if
omode
has its default value of "out
".
[Default: (auto)
]
omode = out|meta|stats|count|checksum|cgi|discard|topcat|samp|plastic|tosql|gui
(ProcessingMode)
out
, which means that
the result will be written as a new table to disk or elsewhere,
as determined by the out
and ofmt
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
(<mode-args>
)
are required to determine the exact behaviour.
Possible values are
out
meta
stats
count
checksum
cgi
discard
topcat
samp
plastic
tosql
gui
help=omode
flag
or see Section 6.4 for more information.
[Default: out
]
out = <out-table>
(TableConsumer)
This parameter must only be given if
omode
has its default value of "out
".
[Default: -
]
pcmd = <cmds>
(ProcessingStep[])
pixdata
,
before any other processing has taken place.
The value of this parameter is one or more of the filter
commands described in Section 6.1.
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.
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.
pfmt = <in-format>
(String)
[Default: (auto)
]
pixdata = <pix-table>
(StarTable)
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.
pixorder = nested|ring|(auto)
(HealpixScheme)
(auto)
is used
it will attempt to work it out from headers in the file
(the ORDERING header).
If no reliable ordering scheme can be determined,
the command will fail with an error.
[Default: (auto)
]
pixsys = icrs|fk5|fk4|galactic|supergalactic|ecliptic
(SkySystem)
insys
and pixsys
parameters may be set null
.
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)radius = <expr>
(String)
stat
parameter.
This will typically be a constant value,
but it may be an algebraic expression based on
columns from the input table.
Not used if stat=point
.
stat = point|mean
(StatMode)
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.[Default: point
]