cds.aladin
Class LocalXMatch

java.lang.Object
  extended by cds.aladin.LocalXMatch

public final class LocalXMatch
extends java.lang.Object

This class aims at providing a positionnal cross-match in Java Algorithms have been adapted from Sebastien's C algorithms

Version:
0.1 : kickoff 12/02/2004
Author:
T. Boch, S .Derriere [CDS]

Constructor Summary
LocalXMatch()
           
 
Method Summary
static XMatchResult[] xID(java.lang.String[] array1, java.lang.String[] array2)
          Perform cross-id, having 2 array of coordinates
static XMatchResult[] xMatch(double[][] array1, double[][] array2, boolean[] flag1, boolean[] flag2, double[] seuil, int fmtOut)
          Perform positionnal cross-match, having 2 arrays of coordinates
static XMatchResult[] xMatchEllipse(double[][] array1, double[][] array2, double[] maj1, double[] min1, double[] pa1, double[] maj2, double[] min2, double[] pa2, boolean[] flag1, boolean[] flag2, double[] seuil, int fmtOut)
          Positional cross match between two tables, taking into account the positional errors: 'pos1' and 'pos2', are arrays of respective length len1 and len2 We assume that pos1 and pos2 are ALREADY sorted in ascending dec seuil is given as n-sigmas limits fmtOut is the output: 1 = best match, 2 = all matches 4 = non-matches Returns: list of matches stored in 'result', and number of matches Major and minor axis in arcsec Position angle in degrees
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalXMatch

public LocalXMatch()
Method Detail

xID

public static XMatchResult[] xID(java.lang.String[] array1,
                                 java.lang.String[] array2)
Perform cross-id, having 2 array of coordinates

Parameters:
array1 -
array2 -
Returns:
XMatchResult[]

xMatch

public static XMatchResult[] xMatch(double[][] array1,
                                    double[][] array2,
                                    boolean[] flag1,
                                    boolean[] flag2,
                                    double[] seuil,
                                    int fmtOut)
Perform positionnal cross-match, having 2 arrays of coordinates

Parameters:
array1 - array of coordinates for first table array1[i][0] is RA, array1[i][1] is DEC
array2 - array of coordinates for second table
seuil - thresholds
fmtOut - output: 1 = best match
2 = all matches
4 = non-matches
flag1 - ignore flags for data of the 1st table (ignore data i in table 1 if flag1[i]==true
flag2 - ignore flags for data of the 2nd table
Returns:
array of XMatchResult

xMatchEllipse

public static XMatchResult[] xMatchEllipse(double[][] array1,
                                           double[][] array2,
                                           double[] maj1,
                                           double[] min1,
                                           double[] pa1,
                                           double[] maj2,
                                           double[] min2,
                                           double[] pa2,
                                           boolean[] flag1,
                                           boolean[] flag2,
                                           double[] seuil,
                                           int fmtOut)
Positional cross match between two tables, taking into account the positional errors: 'pos1' and 'pos2', are arrays of respective length len1 and len2 We assume that pos1 and pos2 are ALREADY sorted in ascending dec seuil is given as n-sigmas limits fmtOut is the output: 1 = best match, 2 = all matches 4 = non-matches Returns: list of matches stored in 'result', and number of matches Major and minor axis in arcsec Position angle in degrees

Parameters:
flag1 - ignore flags for data of the 1st table (ignore data i in table 1 if flag1[i]==true
flag2 - ignore flags for data of the 2nd table


Copyright © 2009 UDS/CNRS