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
public class PixSample extends MapperTask
Samples data from a HEALPix pixel file.- Since:
- 6 Dec 2011
- Author:
- Mark Taylor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PixSample.CoordReader
Interface to turn input coordinate values into coordinate values suitable for pixel sampling.
-
Constructor Summary
Constructors Constructor Description PixSample()
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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, java.lang.String lonExpr, java.lang.String latExpr, java.lang.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
-
-
-
-
Method Detail
-
createSampleSupplement
public static ColumnSupplement createSampleSupplement(uk.ac.starlink.table.StarTable base, PixSampler pixSampler, PixSampler.StatMode statMode, PixSample.CoordReader coordReader, java.lang.String lonExpr, java.lang.String latExpr, java.lang.String radExpr) throws java.io.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:
java.io.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, usenull
for in/out systems.- Parameters:
inSys
- input sky coordinate systemoutSys
- output sky coordinate system- Returns:
- coordinate reader that converts
-
-