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:
- Task
public class PixSample
- extends MapperTask
Samples data from a HEALPix pixel file.
- Since:
- 6 Dec 2011
- Author:
- Mark Taylor
Nested Class Summary |
static interface |
PixSample.CoordReader
Interface to turn input coordinate values into coordinate values
suitable for pixel sampling. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PixSample
public PixSample()
- Constructor.
createSampleSupplement
public static ColumnSupplement createSampleSupplement(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
public static PixSample.CoordReader createCoordReader(SkySystem inSys,
SkySystem outSys)
- Returns a coordinate reader which converts between a given input
and output coordinate system.
If no conversion is required, use
null
for in/out systems.
- Parameters:
inSys
- input sky coordinate systemoutSys
- output sky coordinate system
- Returns:
- coordinate reader that converts
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.