|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
astro.StarCatalog
public class StarCatalog
The object representing a resource-based catalog, like VizieR catalogs or database catalogs.
| Nested Class Summary | |
|---|---|
static class |
StarCatalog.Distance
For sorting star lists to distance of center. |
static class |
StarCatalog.Test
A test class. |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
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. |
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. |
protected static Map<String,Map<String,String>> |
KNOWNCATALOGS
A mapping of catalog names to catalog properties. |
static Map<String,String> |
PPMXLVIZIER
|
static Map<String,String> |
PPMXVIZIER
|
private Method |
retrieve
The method in the Resolver class to invoke. |
private List<StarDescription> |
stars
The list of stars as StarDescriptions. |
static Map<String,String> |
TYCHO2VIZIER
The properties of the Tycho-2 VizieR catalog. |
static Map<String,String> |
UCAC2LOCAL
The properties of the UCAC2-database 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> |
UCACSUPPVIZIER
The properties of the UCAC Supplement-VizieR catalog. |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
StarCatalog(Map<String,String> prop)
Constructs a new star catalog. |
|
| Method Summary | |
|---|---|
int |
commonNames()
This is an exhaustive search on the simbad service. |
static int |
findClosestEntry(StarDescription guide,
List<StarDescription> 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. |
StarDescription |
getClosestEntry(StarDescription 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<StarDescription> |
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<StarDescription> |
merge(List<StarDescription> main,
List<StarDescription> add)
Matches a list-array of StarDescription to yield a single list
with no double entries. |
static List<StarDescription> |
merge(List<StarDescription> main,
List<StarDescription> add,
double error)
Matches a list -array of StarDescription to yield a single list
with no double entries. |
static List<StarDescription> |
merge(List<StarDescription> main,
List<StarDescription> add,
double error,
float magoff)
Matches a list of StarDescription to yield a single list with no
double entries. |
void |
merge(StarCatalog other)
Merges this catalog with another catalog. |
List<StarDescription> |
retrieveCatalog(StarDescription around,
double radius)
Retrieves the catalog by calling the appropriate static method in the Resolver class. |
void |
setStarList(List<StarDescription> retrieved)
Sets the list of stars in this catalog. |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, 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, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
public static final Map<String,String> UCAC2LOCAL
public 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> 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 Map<String,String> PPMXVIZIER
public static final Map<String,String> PPMXLVIZIER
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
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
protected static final Map<String,Map<String,String>> KNOWNCATALOGS
private Method retrieve
Resolver class to invoke.
private List<StarDescription> stars
StarDescriptions.
| Constructor Detail |
|---|
public StarCatalog(Map<String,String> prop)
IllegalArgumentException - If the name or method are missing.| Method Detail |
|---|
public static Map<String,String> getCatalogProperties(String name)
public static StarCatalog fromName(String catname)
public void init()
Resolver class.
init in interface Initializableinit in class PropertyResourcespublic String getCatalogName()
public String getMethodName()
Resolver class.
public double getPositionError()
public long getRetrieveTime(double radius)
public List<StarDescription> retrieveCatalog(StarDescription around,
double radius)
Resolver class.
StarDescriptions.public void setStarList(List<StarDescription> retrieved)
retrieveCatalog(astro.StarDescription, double).
public List<StarDescription> getStarList()
public StarDescription getClosestEntry(StarDescription center)
public static int findClosestEntry(StarDescription guide,
List<StarDescription> fov)
public void merge(StarCatalog other)
public static List<StarDescription> merge(List<StarDescription> main,
List<StarDescription> add)
StarDescription to yield a single list
with no double entries.
public static List<StarDescription> merge(List<StarDescription> main,
List<StarDescription> add,
double error)
StarDescription to yield a single list
with no double entries. The maximum offset in ra/de can be specified.
public static List<StarDescription> merge(List<StarDescription> main,
List<StarDescription> add,
double error,
float magoff)
StarDescription 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
StarDescription 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
StarDescriptions 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||