|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.join.HTMMatchEngine
Implements the object matching interface for sky coordinates (RA, Dec)
using the HTM (Hierarchical Triangular Mesh) scheme.
The tuples it uses are two-element arrays of Number
objects, the first giving Right Ascension in radians, and
the second giving Declination in radians.
The separation attribute indicates how many radians may
separate two points on the celestial sphere for them to be considered
matching.
Field Summary | |
static double |
MESH_SCALE
Scaling factor which determines the size of the mesh cells used as a multiple of the size of the separation. |
Constructor Summary | |
HTMMatchEngine(double separation)
Constructs a new match engine which considers two points (RA,Dec tuples) to match if they are within a given angular distance on the celestial sphere. |
Method Summary | |
Object[] |
getBins(Object[] radec)
Returns all the HTM cells which fall wholly or partially within separation radians of a given position. |
DescribedValue[] |
getMatchParameters()
Returns a set of DescribedValue objects whose values can be modified to modify the matching criteria. |
double |
getSeparation()
Returns the separation between points within which they will be considered to match. |
ValueInfo[] |
getTupleInfos()
Returns a set of ValueInfo objects indicating what is required for the elements of each tuple. |
boolean |
matches(Object[] radec1,
Object[] radec2)
Matches two tuples representing RA,Dec coordinates if they are within separation radians of each other on the sky. |
void |
setSeparation(double separation)
Configures this match engine to consider two points (RA,Dec tuples) to match if they are within a given angular distance on the celestial sphere. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final double MESH_SCALE
Constructor Detail |
public HTMMatchEngine(double separation)
separation
- match radius in radiansMethod Detail |
public void setSeparation(double separation)
separation
- match radius in radianspublic double getSeparation()
public boolean matches(Object[] radec1, Object[] radec2)
matches
in interface MatchEngine
radec1
- 2-element array of Number objects giving RA & dec
of first pointradec2
- 2-element array of Number objects giving RA & dec
of second point
public Object[] getBins(Object[] radec)
getBins
in interface MatchEngine
radec
- 2-element array of Number objects giving RA & Dec
of the position to test
public ValueInfo[] getTupleInfos()
MatchEngine
getTupleInfos
in interface MatchEngine
public DescribedValue[] getMatchParameters()
MatchEngine
DescribedValue.setValue(java.lang.Object)
on the
returned objects.
getMatchParameters
in interface MatchEngine
public String toString()
toString
in class Object
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |