Package uk.ac.starlink.ttools.task
Class PixSample
java.lang.Object
uk.ac.starlink.ttools.task.ConsumerTask
uk.ac.starlink.ttools.task.MapperTask
uk.ac.starlink.ttools.task.PixSample
- All Implemented Interfaces:
uk.ac.starlink.task.Task
Samples data from a HEALPix pixel file.
- Since:
- 6 Dec 2011
- Author:
- Mark Taylor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface to turn input coordinate values into coordinate values suitable for pixel sampling. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PixSample.CoordReader
createCoordReader
(SkySystem inSys, SkySystem outSys) Returns a coordinate reader which converts between a given input and output coordinate system.static ColumnSupplement
createSampleSupplement
(uk.ac.starlink.table.StarTable base, PixSampler pixSampler, PixSampler.StatMode statMode, PixSample.CoordReader coordReader, String lonExpr, String latExpr, String radExpr) Creates a table containing pixel samples corresponding to the rows of a base table in accordance with supplied parameters.Methods inherited from class uk.ac.starlink.ttools.task.MapperTask
createProducer, getMapper, getTablesInput
Methods inherited from class uk.ac.starlink.ttools.task.ConsumerTask
createExecutable, createProducer, getIdentity, getOutputMode, getParameterList, getParameters, getPurpose
-
Constructor Details
-
PixSample
public PixSample()Constructor.
-
-
Method Details
-
createSampleSupplement
public static ColumnSupplement createSampleSupplement(uk.ac.starlink.table.StarTable base, PixSampler pixSampler, PixSampler.StatMode statMode, PixSample.CoordReader coordReader, String lonExpr, String latExpr, String radExpr) throws IOException Creates a table containing pixel samples corresponding to the rows of a base table in accordance with supplied parameters.- Parameters:
base
- base tablepixSampler
- characterises pixel samplingcoordReader
- turns input coordinate pairs into lon/lat coords in the HEALPix coordinate systemlonExpr
- JEL expression for first input coordinatelatExpr
- JEL expression for second input coordinateradExpr
- JEL expression for averaging radius- Returns:
- table containing sampled columns
- Throws:
IOException
-
createCoordReader
Returns a coordinate reader which converts between a given input and output coordinate system. If no conversion is required, usenull
for in/out systems.- Parameters:
inSys
- input sky coordinate systemoutSys
- output sky coordinate system- Returns:
- coordinate reader that converts
-