public class StarCatalog extends PropertyContainer implements Initializable
| Modifier and Type | Class and Description |
|---|---|
static class |
StarCatalog.Test
A test class.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
ASCCVIZIER
The properties of the all-sky compiled catalog-VizieR catalog.
|
static Map<String,String> |
BSCSERIAL
The properties of the bright star-serialized catalog.
|
static Map<String,String> |
BSCVIZIER
The properties of the bright star-VizieR catalog.
|
private static String |
DEFCATALOGNAME
The default catalog name.
|
static double |
DEFDEOFFSET
The maximum offset in de in degrees.
|
static float |
DEFMAGOFFSET
The maximum offset in magnitude.
|
private static String |
DEFMETHODNAME
The default retrieval method.
|
static double |
DEFPOSITIONERROR
The default positional error in degrees.
|
static double |
DEFRAOFFSET
The maximum offset in ra*cos(de) in degrees.
|
static float |
DEFRESOLVEMAG
The maximum magnitude for simbad resolving.
|
private static long |
DEFRETREIVEBASE
The default retreive time for the catalog resource.
|
private static long |
DEFRETREIVEFIELD
The default retreive time for the catalog resource.
|
private static boolean |
DEFSERVLETRESOLVE |
static Map<String,String> |
GSC2VIZIER
The properties of the Guide Star 2-VizieR catalog.
|
static Map<String,String> |
GSCVIZIER
The properties of the Guide Star 1-VizieR catalog.
|
static Map<String,String> |
HIPPSERIAL
The properties of the Hipparchos-VizieR catalog.
|
static Map<String,String> |
HIPPVIZIER
The properties of the Hipparchos-VizieR catalog.
|
static String |
KEY_CATALOGNAME
The user-friendly name of the catalog.
|
static String |
KEY_DEOFFSET
The key to the maximum de-error of the catalog.
|
static String |
KEY_MAGOFFSET
The key to the maximum mag-error of the catalog.
|
static String |
KEY_METHODNAME
The method name in the
Resolver class. |
static String |
KEY_POSITIONERROR
The key to the position error circle radius.
|
static String |
KEY_RAOFFSET
The key to the maximum ra-error of the catalog.
|
static String |
KEY_RESOLVEMAG
The key to the maximum mag allowing for simbad-name resolving.
|
static String |
KEY_RETRIEVEBASE
The key to the times for retreiving the catalogs.
|
static String |
KEY_RETRIEVEFIELD
The key to the times for retreiving the catalogs.
|
static String |
KEY_SERVLETRESOLVE
If true, resolve with servlet.
|
protected static Map<String,Map<String,String>> |
KNOWNCATALOGS
A mapping of catalog names to catalog properties.
|
static Map<String,String> |
PPMXLDB |
static Map<String,String> |
PPMXLFAINTDB |
static Map<String,String> |
PPMXLVIZIER |
static Map<String,String> |
PPMXVIZIER |
private Resolver |
resolve
The resolver instance.
|
private Method |
retrieve
The method in the
Resolver class to invoke. |
private List<Star> |
stars
The list of stars as
Stars. |
static Map<String,String> |
TWOMASSVIZIER
The properties of the 2Mass-VizieR catalog.
|
static Map<String,String> |
TYCHO2VIZIER
The properties of the Tycho-2 VizieR catalog.
|
static Map<String,String> |
UCAC2VIZIER
The properties of the UCAC2-VizieR catalog.
|
static Map<String,String> |
UCAC3SUPP
The properties of the UCAC2-VizieR catalog.
|
static Map<String,String> |
UCAC3VIZIER
The properties of the UCAC2-VizieR catalog.
|
static Map<String,String> |
UCAC5VIZIER
The properties of the UCAC2-VizieR catalog.
|
static Map<String,String> |
UCACSUPPVIZIER
The properties of the UCAC Supplement-VizieR catalog.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
StarCatalog(Map<String,String> prop)
Constructs a new star catalog.
|
| Modifier and Type | Method and Description |
|---|---|
int |
commonNames()
This is an exhaustive search on the simbad service.
|
static int |
findClosestEntry(Star guide,
List<Star> fov)
Scans the list of stars for the star that is closest to the supplied
center.
|
static StarCatalog |
fromName(String catname)
Creates a catalog from a given name, if this name is known.
|
String |
getCatalogName()
Returns the name of the catalog.
|
static Map<String,String> |
getCatalogProperties(String name)
Retrieves properties for a star catalog given the name.
|
Star |
getClosestEntry(Star center)
Finds the star that is closest to the given center in this catalog.
|
String |
getMethodName()
Returns the method name to use in the
Resolver class. |
double |
getPositionError()
Returns the maximum positional error expected for this catalog as an
error circle radius around a position.
|
long |
getRetrieveTime(double radius)
Returns the estimated time for resolving the catalog.
|
List<Star> |
getStarList()
Returns the star list assigned to this catalog.
|
void |
init()
Inits the star catalog by finding the appropriate method in the
Resolver class. |
static List<Star> |
merge(List<Star> main,
List<Star> add)
Matches a list-array of
SimpleStar to yield a single list
with no double entries. |
static List<Star> |
merge(List<Star> main,
List<Star> add,
double error)
Matches a list -array of
SimpleStar to yield a single list
with no double entries. |
static List<Star> |
merge(List<Star> main,
List<Star> add,
double error,
float magoff)
Matches a list of
SimpleStar to yield a single list with no
double entries. |
void |
merge(StarCatalog other)
Merges this catalog with another catalog.
|
List<Star> |
retrieveCatalog(Star around,
double radius)
Retrieves the catalog by calling the appropriate static method in the
Resolver class. |
void |
setStarList(List<Star> retrieved)
Sets the list of stars in this catalog.
|
augment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final Map<String,String> UCAC2VIZIER
public static final Map<String,String> UCAC3VIZIER
public static final Map<String,String> UCAC3SUPP
public static final Map<String,String> UCAC5VIZIER
public static final Map<String,String> TWOMASSVIZIER
public static final Map<String,String> BSCVIZIER
public static final Map<String,String> BSCSERIAL
public static final Map<String,String> HIPPVIZIER
public static final Map<String,String> HIPPSERIAL
public static final Map<String,String> ASCCVIZIER
public static final Map<String,String> GSCVIZIER
public static final Map<String,String> GSC2VIZIER
public static final Map<String,String> UCACSUPPVIZIER
public static final Map<String,String> TYCHO2VIZIER
public static final String KEY_CATALOGNAME
public static final String KEY_METHODNAME
Resolver class.public static final String KEY_RAOFFSET
public static final String KEY_DEOFFSET
public static final String KEY_MAGOFFSET
public static final String KEY_POSITIONERROR
public static final String KEY_RESOLVEMAG
public static final String KEY_RETRIEVEBASE
public static final String KEY_RETRIEVEFIELD
public static final String KEY_SERVLETRESOLVE
private static final String DEFCATALOGNAME
private static final String DEFMETHODNAME
public static final double DEFRAOFFSET
public static final double DEFDEOFFSET
public static final float DEFMAGOFFSET
public static final double DEFPOSITIONERROR
public static final float DEFRESOLVEMAG
private static final long DEFRETREIVEBASE
private static final long DEFRETREIVEFIELD
private static final boolean DEFSERVLETRESOLVE
protected static final Map<String,Map<String,String>> KNOWNCATALOGS
private Resolver resolve
public StarCatalog(Map<String,String> prop)
IllegalArgumentException - If the name or method are missing.public static Map<String,String> getCatalogProperties(String name)
public static StarCatalog fromName(String catname)
public void init()
Resolver class.init in interface Initializablepublic String getCatalogName()
public double getPositionError()
public long getRetrieveTime(double radius)
public List<Star> retrieveCatalog(Star around, double radius)
Resolver class.SimpleStars.public void setStarList(List<Star> retrieved)
retrieveCatalog(astro.Star, double).public List<Star> getStarList()
public Star getClosestEntry(Star center)
public static int findClosestEntry(Star guide, List<Star> fov)
public void merge(StarCatalog other)
public static List<Star> merge(List<Star> main, List<Star> add)
SimpleStar to yield a single list
with no double entries.public static List<Star> merge(List<Star> main, List<Star> add, double error)
SimpleStar to yield a single list
with no double entries. The maximum offset in ra/de can be specified.public static List<Star> merge(List<Star> main, List<Star> add, double error, float magoff)
SimpleStar to yield a single list with no
double entries. The maximum offset in ra/de and the magnitude can be
specified. If matching entries are found, non-defined fields in the
SimpleStar are updated. Please note that the standard
procedure is to match the main list to the following list, i.e. the first
list should hold the 'best' entries. We assume that all
SimpleStars in the list are at least marginally valid. The
list returned is a new instance.public int commonNames()
KEY_RESOLVEMAG is queried in the GSC 1.2 catalog. If a match is
found, the GSC name is used to fetch a more common name in the Simbad
name resolving service. If this query is successful, the simbad common
name replaces the old star name.