public class SkySimData extends Object
The data is held in arrays in memory, so that access including concurrent access will be fast. It is therefore only intended to hold information for a modest number of sky areas.
Modifier and Type | Class and Description |
---|---|
static class |
SkySimData.Col
Defines an object that can return a sample value for a given region.
|
Modifier and Type | Method and Description |
---|---|
SkySimData.Col |
createCoordColumn(boolean isLat)
Returns a column object that can give simulated sky positions.
|
SkySimData.Col[] |
createQuantityColumns()
Returns an array of column objects that can report statistically
defined quantities.
|
HealpixTableInfo |
getHealpixInfo()
Returns the HEALPix setup of the statistics file on which this
simulation data is based.
|
int |
getRandomRowIndex(long seed)
Returns a sky area at random.
|
int |
getRowCount()
Returns the number of sky areas represented.
|
static SkySimData |
readData(StarTable table,
HealpixTableInfo hpxInfo,
String cnameWeight,
String stdevSuffix)
Assembles a SkySimData instance by using statistical information
in a given HEALPix table (one with a row for each healpix tile).
|
public int getRowCount()
public HealpixTableInfo getHealpixInfo()
public int getRandomRowIndex(long seed)
seed
- random seedpublic SkySimData.Col createCoordColumn(boolean isLat)
isLat
- true for latitude, false for longitudepublic SkySimData.Col[] createQuantityColumns()
public static SkySimData readData(StarTable table, HealpixTableInfo hpxInfo, String cnameWeight, String stdevSuffix) throws IOException
X
,
X<stdevSuffix>
containing respectively the mean and
sample standard deviation respectively of quantities per region.table
- table containing statistical informationhpxInfo
- HEALPix characterisation of the tablecnameWeight
- name of the table column containing region weight
(for instance a source count)stdevSuffix
- column name suffix indicating sample standard
deviationIOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.