public class WcsMatch extends PropertyContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
WcsMatch.Coarse
Simple matcher class that takes an input catalog and matches it to a
(sextractor) output of positions.
|
private class |
WcsMatch.Stereographic
The multidimensional for stereographic projection.
|
static class |
WcsMatch.Test
Test the method on a very simple system.
|
| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFDEVIATION
The default normalized deviation.
|
private static double |
DEFFSCALE
The default scale
|
private static double |
DEFIMPROVABLE
The default normalized deviation.
|
private static double |
DEFMAGNITUDE
The default magnitude scale
|
private static double |
DEFOUTLIE
The default normalized deviation.
|
private static double |
DEFPIXEL
The default normalized deviation.
|
private static double |
DEFSECOND
The default normalized deviation.
|
private static double |
DEFTHETA
The default rotation
|
private static boolean |
DEFXMIRROR
The default x mirror
|
private static double |
DEFXSHIFT
The default x shift
|
private static boolean |
DEFYMIRROR
The default x mirror
|
private static double |
DEFYSHIFT
The default y shift
|
private static double |
DEFZEROOFF
The default normalized deviation.
|
static String |
KEY_DECENTER
The center of the frame.
|
static String |
KEY_DEVIATION
The maximum deviation for similarity of triangles.
|
static String |
KEY_FSCALE
The key to the starting value of focallength times scale.
|
static String |
KEY_IMPROVABLE
The maximum deviation of final fit in pixel.
|
static String |
KEY_MAGNITUDE
The maximum deviation of the instrumental to catalog magnitudes.
|
static String |
KEY_OUTLIE
The maximum deviation of final fit in pixel.
|
static String |
KEY_PIXEL
The maximum deviation of final fit in pixel.
|
static String |
KEY_RACENTER
The center of the frame in hh:mm:ss.ss, right ascension.
|
static String |
KEY_SECOND
The maximum deviation of second final fit in pixel.
|
static String |
KEY_THETA
The key to the starting value of field angle
|
static String |
KEY_XMIRROR
The key to the mirroring along x-axis.
|
static String |
KEY_XSHIFT
The key to the starting value of CCD shift, x
|
static String |
KEY_YMIRROR
The key to the mirroring along x-axis.
|
static String |
KEY_YSHIFT
The key to the starting value of CCD shift, y
|
static String |
KEY_ZERO
The rough zero point in magnitude.
|
static String |
KEY_ZEROOFF
The rough zero point in magnitude.
|
private Vector3D[] |
rawcatalog
The ra, dec, mag of the catalog stars.
|
private Vector3D[] |
rawmeasure
The identified candidates to the catalog.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Modifier and Type | Method and Description |
|---|---|
private static double |
deviation(Vector2D[] cat,
Vector2D[] test)
Calculates the deviation between the two triangles.
|
VectorG |
invert(VectorG result,
Dimension chip)
From the chip size, invert the solution and return the central ra, de in
0/1, the pixel scale in arcsec/pixel in 2 and the field rotation in
degrees in 3.
|
private int[] |
matchTriangle(Vector2D[] triangle,
Vector3D[] meas,
int[] id)
Tries to match a normalized triangle in the first array to any triangle
formed by the measurements provided in the second array, which must have
at least three entries.
|
private static Vector2D[] |
normalizeTriangle(Vector3D[] p)
Normalizes a triangle by calculating side length.
|
private static String |
printTriangle(Vector2D[] tri)
Converts a triangle to a string.
|
void |
setCatalog(Vector3D[] cat)
Sets the list of measured stars.
|
void |
setMeasures(Vector3D[] meas)
Sets the list of measured stars.
|
private int[] |
similarTriangles()
Tries to find matches from catalog to measured.
|
VectorG |
solve()
Solves for a solution using previously defined catalog and measures.
|
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 String KEY_FSCALE
public static final String KEY_THETA
public static final String KEY_XSHIFT
public static final String KEY_YSHIFT
public static final String KEY_XMIRROR
public static final String KEY_YMIRROR
public static final String KEY_RACENTER
public static final String KEY_DECENTER
public static final String KEY_DEVIATION
public static final String KEY_MAGNITUDE
public static final String KEY_PIXEL
public static final String KEY_SECOND
public static final String KEY_IMPROVABLE
public static final String KEY_OUTLIE
public static final String KEY_ZERO
public static final String KEY_ZEROOFF
private static final double DEFMAGNITUDE
private static final double DEFFSCALE
private static final double DEFTHETA
private static final double DEFXSHIFT
private static final double DEFYSHIFT
private static final boolean DEFXMIRROR
private static final boolean DEFYMIRROR
private static final double DEFDEVIATION
private static final double DEFPIXEL
private static final double DEFIMPROVABLE
private static final double DEFOUTLIE
private static final double DEFZEROOFF
private static final double DEFSECOND
private Vector3D[] rawcatalog
private Vector3D[] rawmeasure
public void setCatalog(Vector3D[] cat)
public void setMeasures(Vector3D[] meas)
private int[] similarTriangles()
private int[] matchTriangle(Vector2D[] triangle, Vector3D[] meas, int[] id)
private static final String printTriangle(Vector2D[] tri)
private static Vector2D[] normalizeTriangle(Vector3D[] p)
private static double deviation(Vector2D[] cat, Vector2D[] test)
public VectorG invert(VectorG result, Dimension chip)
public VectorG solve()