public class PpmXlDatabase extends HtmStarDatabase
| Modifier and Type | Class and Description |
|---|---|
static class |
PpmXlDatabase.Query |
AbstractSql.Columns, AbstractSql.ExtractPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFCOLOR
Default column name.
|
private static String |
DEFDE
Default column name.
|
private static String |
DEFDEERR
Default column name.
|
private static float |
DEFFAINTMAG |
private static String |
DEFFAINTTABLE
Default table.
|
private static String |
DEFHTM
Default column name.
|
private static int |
DEFHTMDEPTH
Default column name.
|
private static String |
DEFMAG
Default column name.
|
private static String |
DEFMAGERR
Default column name.
|
private static String |
DEFNAME
Default column name.
|
private static String |
DEFPMDE
Default column name.
|
private static String |
DEFPMRA
Default column name.
|
private static String |
DEFRA
Default column name.
|
private static String |
DEFRAERR
Default column name.
|
private static String |
DEFRI
Default column name.
|
private static String |
DEFTABLE
Default table.
|
static double |
DEGMARCSEC
Converts degrees to milliarcseconds.
|
static String |
KEY_DEERR
The key linked to the error of the declination, mas.
|
static String |
KEY_FAINTMAG
Stars fainter than this go to the extended table.
|
static String |
KEY_FAINTTABLE
The table name of the faint-magnitude stars.
|
static String |
KEY_MAGERR
The key linked to the error of the magnitude.
|
static String |
KEY_RAERR
The key linked to the error of the right ascension, mas.
|
static String |
KEY_RI
The key linked to the R-I color expression.
|
static String |
PPMXLDATABASE
The properties for connecting to the ppmxl db on stella.
|
static String |
PPMXLFURMINT
The properties for connecting to the UCAC2 database on furmint.
|
private String |
table
Currently queried table.
|
KEY_COLOR, KEY_DE, KEY_EPOCH, KEY_EQUINOX, KEY_HTM, KEY_HTMDEPTH, KEY_MAG, KEY_NAME, KEY_PMDE, KEY_PMRA, KEY_RAKEY_TABLE, SQLBATCHDIR, SQLFAILDIRKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
PpmXlDatabase(Map<String,String> prop)
Constructs a new generic star database.
|
| Modifier and Type | Method and Description |
|---|---|
List<Star> |
around(SimpleStar to,
double radius,
boolean faint)
Matches the given star to the PPMXL database using the provided search
radius, which should be five times the combined catalog position
uncertainties.
|
List<Star> |
getCircularField(double ra,
double dec,
double radius,
boolean strict)
Takes a central star and a circular radius around it to convert it to a
database query result set, which is then passed to the
HtmStarDatabase.parseResultSet(java.sql.ResultSet) method. |
static Map<String,String> |
getDefaulProperites()
Returns the default properties for the ppmxl db on stella.aip.de
|
List<Star> |
getFaintCircularField(double ra,
double dec,
double radius,
boolean strict) |
float |
getFaintMag()
Returns the magnitude above which the catalog is considered faint
magnitudes.
|
List<Star> |
getFullCircularField(double ra,
double dec,
double radius,
boolean strict) |
String |
getTable()
For querying faint stars we return the faint table name here.
|
Star |
match(SimpleStar to,
double radius,
boolean faint)
Matches the given star to the PPMXL database using the provided search
radius, which should be five times the combined catalog position
uncertainties.
|
protected SimpleStar |
parseResultSet(ResultSet rs)
We consider that ra, de are gien in milli-arcsec, so we divide by
3600000.
|
getCircularField, getHtmIndex, getHtmIndex, parseDefaultResultSetdelete, distinct, distinct, exit, getAccess, getDefaultArchive, getDefaultFormat, init, insert, isEntry, release, release, replace, retrieve, retrieve, retrieve, single, singleclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, 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, stringPropertiespublic static final String PPMXLFURMINT
public static final String PPMXLDATABASE
public static final double DEGMARCSEC
public static final String KEY_RAERR
public static final String KEY_DEERR
public static final String KEY_RI
public static final String KEY_MAGERR
public static final String KEY_FAINTTABLE
public static final String KEY_FAINTMAG
private static final String DEFTABLE
private static final String DEFFAINTTABLE
private static final int DEFHTMDEPTH
private static final String DEFHTM
private static final String DEFNAME
private static final String DEFRA
private static final String DEFRAERR
private static final String DEFDE
private static final String DEFDEERR
private static final String DEFPMRA
private static final String DEFPMDE
private static final String DEFMAG
private static final String DEFCOLOR
private static final String DEFRI
private static final String DEFMAGERR
private static final float DEFFAINTMAG
private String table
public PpmXlDatabase(Map<String,String> prop)
SimpleStars. Keys
that are not defined mean that they are not present in the database.public static final Map<String,String> getDefaulProperites()
public String getTable()
getTable in class AbstractSqlpublic float getFaintMag()
public List<Star> getCircularField(double ra, double dec, double radius, boolean strict) throws SQLException
HtmStarDatabaseHtmStarDatabase.parseResultSet(java.sql.ResultSet) method.getCircularField in class HtmStarDatabasera - The central position, right ascension degrees.dec - The central position, declination degrees.radius - Radius of the circular field around the center, degrees.SQLExceptionpublic List<Star> getFaintCircularField(double ra, double dec, double radius, boolean strict) throws SQLException
SQLExceptionpublic List<Star> getFullCircularField(double ra, double dec, double radius, boolean strict) throws SQLException
SQLExceptionpublic Star match(SimpleStar to, double radius, boolean faint) throws ConnectException, SQLException
SQLExceptionConnectExceptionpublic List<Star> around(SimpleStar to, double radius, boolean faint) throws ConnectException, SQLException
SQLExceptionConnectExceptionprotected SimpleStar parseResultSet(ResultSet rs) throws SQLException
parseResultSet in class HtmStarDatabaseSQLException