| Modifier and Type | Class and Description |
|---|---|
static interface |
PixSampler.StatMode
Defines how statistics are to be acquired from a pixel or set of pixels.
|
| Modifier and Type | Field and Description |
|---|---|
static PixSampler.StatMode |
MEAN_MODE
StatMode for taking an average.
|
static PixSampler.StatMode |
POINT_MODE
StatMode for making point samples.
|
| Constructor and Description |
|---|
PixSampler(StarTable pixTable,
boolean nested,
int order)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static PixSampler |
createPixSampler(StarTable pixTable)
Constructs a PixSampler from a given table.
|
ColumnInfo[] |
getValueInfos(PixSampler.StatMode statMode)
Returns the metadata for the columns output by the sampler.
|
static Boolean |
inferNested(StarTable pixTable)
Tries to work out whether a given table uses the nested or ring
HEALPix ordering scheme.
|
static int |
inferOrder(StarTable pixTable)
Tries to work out the HEALPix order parameter for a pixel data table.
|
Object |
sampleValue(int icol,
double alphaDeg,
double deltaDeg,
double radiusDeg,
PixSampler.StatMode statMode)
Samples a single value from a given sky position.
|
Object[] |
sampleValues(double alphaDeg,
double deltaDeg,
double radiusDeg,
PixSampler.StatMode statMode)
Samples values from all columns in given table at a given sky position.
|
public static final PixSampler.StatMode POINT_MODE
public static final PixSampler.StatMode MEAN_MODE
public PixSampler(StarTable pixTable, boolean nested, int order) throws IOException
pixTable - random access HEALPix-format table
(one row per pixel)nested - true for nested pixel order, false for ringorder - HEALPix orderIOException - if the table has the wrong number of rows
or is not random accesspublic Object sampleValue(int icol, double alphaDeg, double deltaDeg, double radiusDeg, PixSampler.StatMode statMode) throws IOException
icol - column index of value to samplealphaDeg - longitude position in degreesdeltaDeg - latitude position in degreesradiusDeg - radius of disc over which statistics will be
gathered (ignored for point-like statMode)statMode - mode for sampling statisticsIOExceptionpublic Object[] sampleValues(double alphaDeg, double deltaDeg, double radiusDeg, PixSampler.StatMode statMode) throws IOException
alphaDeg - longitude position in degreesdeltaDeg - latitude position in degreesradiusDeg - radius of disc over which statistics will be
gathered (ignored for point-like statMode)statMode - mode for sampling statisticsIOExceptionpublic ColumnInfo[] getValueInfos(PixSampler.StatMode statMode)
statMode - mode for sampling statisticspublic static PixSampler createPixSampler(StarTable pixTable) throws IOException
pixTable - random access table containing HEALPix pixelsIOException - if table is not random access or does not
appear to contain HEALPix datapublic static Boolean inferNested(StarTable pixTable)
pixTable - pixel data tablepublic static int inferOrder(StarTable pixTable) throws IOException
pixTable - pixel data tableIOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.