|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.util.MirrorCenter
public class MirrorCenter
We take measurements of stars on the guider on the direct image and their reflected positions on the fiber mirror. Assuming that the difference in scales can be described by a single factor k and noting that
dxm = -k·dxd,we can write
xm = -k·xd+(1+k)m,where m is the projection center, i.e. they point where xm = xd. This class solves for both, the vector m and the scalar k using coordinate pairs of the direct and the reflected image.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private Multidimensional |
center
The function to minimize. |
private static double |
DEFK
Starting value for k. |
private static double |
DEFXCENTER
Starting value for mirror center x. |
private static double |
DEFYCENTER
Starting value for mirror center y. |
private List |
direct
List of points giving the direct star images. |
static String |
KEY_DIRECT
The key to the direct pairs. |
static String |
KEY_K
The key to the starting value of focal scale conversion faktor k. |
static String |
KEY_MIRROR
The key to the mirror pairs. |
static String |
KEY_XCENTER
The key to the starting mirroring center along x-axis. |
static String |
KEY_YCENTER
The key to the starting mirroring center along x-axis. |
private List |
mirror
List of points giving the mirrored star images. |
| 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 | |
|---|---|
MirrorCenter(Map prop)
Constructs a new mirror center, defaulting the starting values. |
|
| Method Summary | |
|---|---|
static void |
main(String[] arg)
Reads the properties from the command line, construct a new mirror center object and use an Amoeba to optimize the focal length ratio and the x/y mirror position. |
| 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, init, 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 |
| Methods inherited from interface util.Initializable |
|---|
init |
| Field Detail |
|---|
public static final String KEY_K
public static final String KEY_XCENTER
public static final String KEY_YCENTER
public static final String KEY_DIRECT
public static final String KEY_MIRROR
private static final double DEFK
private static final double DEFXCENTER
private static final double DEFYCENTER
private List direct
private List mirror
private Multidimensional center
| Constructor Detail |
|---|
public MirrorCenter(Map prop)
| Method Detail |
|---|
public static void main(String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||