Package gaiasky.util.ucd
Class UCDParser
- java.lang.Object
-
- gaiasky.util.ucd.UCDParser
-
public class UCDParser extends java.lang.ObjectParses the ucds of a star table and builds some metadata on the relevant quantities for gaia sky (position, proper motion, magnitudes, colors, etc.)
-
-
Field Summary
Fields Modifier and Type Field Description com.badlogic.gdx.utils.Array<UCD>COLcom.badlogic.gdx.utils.Array<UCD>extrabooleanhascolbooleanhasidbooleanhasmagbooleanhasnamebooleanhaspmbooleanhasposcom.badlogic.gdx.utils.Array<UCD>IDcom.badlogic.gdx.utils.Array<UCD>MAGcom.badlogic.gdx.utils.Array<UCD>NAMEcom.badlogic.gdx.utils.Array<UCD>PMDECcom.badlogic.gdx.utils.Array<UCD>PMRAcom.badlogic.gdx.utils.Array<UCD>POS1com.badlogic.gdx.utils.Array<UCD>POS2com.badlogic.gdx.utils.Array<UCD>POS3com.badlogic.gdx.utils.Array<UCD>RADVELjava.util.Map<gaiasky.util.ucd.UCD.UCDType,java.util.Set<UCD>>ucdmap
-
Constructor Summary
Constructors Constructor Description UCDParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Position.PositionTypegetPositionType(UCD pos1, UCD pos2, UCD pos3)booleanhas(UCD ucd)booleanhas(UCD ucd, com.badlogic.gdx.utils.Array<UCD> a)voidparse(uk.ac.starlink.table.StarTable table)Parses the given table and puts the UCD info into the ucdmap.
-
-
-
Field Detail
-
ucdmap
public java.util.Map<gaiasky.util.ucd.UCD.UCDType,java.util.Set<UCD>> ucdmap
-
hasid
public boolean hasid
-
ID
public com.badlogic.gdx.utils.Array<UCD> ID
-
hasname
public boolean hasname
-
NAME
public com.badlogic.gdx.utils.Array<UCD> NAME
-
haspos
public boolean haspos
-
POS1
public com.badlogic.gdx.utils.Array<UCD> POS1
-
POS2
public com.badlogic.gdx.utils.Array<UCD> POS2
-
POS3
public com.badlogic.gdx.utils.Array<UCD> POS3
-
haspm
public boolean haspm
-
PMRA
public com.badlogic.gdx.utils.Array<UCD> PMRA
-
PMDEC
public com.badlogic.gdx.utils.Array<UCD> PMDEC
-
RADVEL
public com.badlogic.gdx.utils.Array<UCD> RADVEL
-
hasmag
public boolean hasmag
-
MAG
public com.badlogic.gdx.utils.Array<UCD> MAG
-
hascol
public boolean hascol
-
COL
public com.badlogic.gdx.utils.Array<UCD> COL
-
extra
public com.badlogic.gdx.utils.Array<UCD> extra
-
-
Method Detail
-
parse
public void parse(uk.ac.starlink.table.StarTable table)
Parses the given table and puts the UCD info into the ucdmap. The map and all the indices are overwritten.- Parameters:
table- TheStarTableto parse
-
has
public boolean has(UCD ucd)
-
getPositionType
public Position.PositionType getPositionType(UCD pos1, UCD pos2, UCD pos3)
-
-