stella.util
Class MirrorCenter

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.util.MirrorCenter
All Implemented Interfaces:
Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class MirrorCenter
extends PropertyBundles

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

KEY_K

public static final String KEY_K
The key to the starting value of focal scale conversion faktor k.

See Also:
Constant Field Values

KEY_XCENTER

public static final String KEY_XCENTER
The key to the starting mirroring center along x-axis.

See Also:
Constant Field Values

KEY_YCENTER

public static final String KEY_YCENTER
The key to the starting mirroring center along x-axis.

See Also:
Constant Field Values

KEY_DIRECT

public static final String KEY_DIRECT
The key to the direct pairs.

See Also:
Constant Field Values

KEY_MIRROR

public static final String KEY_MIRROR
The key to the mirror pairs.

See Also:
Constant Field Values

DEFK

private static final double DEFK
Starting value for k.

See Also:
Constant Field Values

DEFXCENTER

private static final double DEFXCENTER
Starting value for mirror center x.

See Also:
Constant Field Values

DEFYCENTER

private static final double DEFYCENTER
Starting value for mirror center y.

See Also:
Constant Field Values

direct

private List direct
List of points giving the direct star images.


mirror

private List mirror
List of points giving the mirrored star images.


center

private Multidimensional center
The function to minimize.

Constructor Detail

MirrorCenter

public MirrorCenter(Map prop)
Constructs a new mirror center, defaulting the starting values. Also reads the stars and defines my multidimensional for use with amoeba.

Method Detail

main

public 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.