public class HealpixTableInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HealpixTableInfo.HpxCoordSys
Characterises the coordinate systems defined by the HEALpix-FITS
serialization convention.
|
Modifier and Type | Field and Description |
---|---|
static ValueInfo |
HPX_COLNAME_INFO
Metadata element for name of column storing pixel index.
|
static ValueInfo |
HPX_CSYS_INFO
Metadata element for character indicating sky system: C, G or E.
|
static ValueInfo |
HPX_ISNEST_INFO
Metadata element * for HEALPix ordering (true=NESTED, false=RING).
|
static ValueInfo |
HPX_LEVEL_INFO
Metadata element for HEALPix level (=log2(nside)).
|
Constructor and Description |
---|
HealpixTableInfo(int level,
boolean isNest,
String ipixColName,
HealpixTableInfo.HpxCoordSys csys)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static HealpixTableInfo |
fromParams(List<DescribedValue> params)
Imports HEALPix information from a list of table parameters,
and turns it into an instance of this class.
|
HealpixTableInfo.HpxCoordSys |
getCoordSys()
Returns the HEALPix coordinate system variant used by this table.
|
int |
getLevel()
Returns the HEALPix level.
|
String |
getPixelColumnName()
Returns the name of the table column containing the HEALPix pixel index.
|
int |
hashCode() |
static boolean |
isHealpix(List<DescribedValue> params)
Indicates whether a list of table parameters appears to be
from a table with HEALPix annotations as expected by this class.
|
boolean |
isNest()
Indicates pixel ordering scheme.
|
DescribedValue[] |
toParams()
Exports the contents of this object to a list of DescribedValue
objects that can be attached to a table's parameter list,
to declare the organisation of HEALPix information in that table.
|
String |
toString() |
public static final ValueInfo HPX_LEVEL_INFO
STIL_HPX_LEVEL
", class Integer.public static final ValueInfo HPX_ISNEST_INFO
STIL_HPX_ISNEST
", class Boolean.public static final ValueInfo HPX_COLNAME_INFO
STIL_HPX_COLNAME
", class String.public static final ValueInfo HPX_CSYS_INFO
STIL_HPX_CSYS
", class String.public HealpixTableInfo(int level, boolean isNest, String ipixColName, HealpixTableInfo.HpxCoordSys csys)
level
- healpix level; negative means not definedisNest
- true for nested, false for ringipixColName
- name of column containing pixel index,
or null for implicit pixel indicescsys
- healpix coordinate system variantpublic int getLevel()
public boolean isNest()
public String getPixelColumnName()
public HealpixTableInfo.HpxCoordSys getCoordSys()
public DescribedValue[] toParams()
public static boolean isHealpix(List<DescribedValue> params)
HPX_*
ValueInfos appears in the list, and returns
true if so.
This method may be useful to determine whether it's worth while
to call fromParams(java.util.List<uk.ac.starlink.table.DescribedValue>)
.
params
- list of DescribedValue objects,
as obtained from Table.getParameterspublic static HealpixTableInfo fromParams(List<DescribedValue> params)
params
- list of DescribedValue objects,
as obtained from Table.getParametersCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.