stella.util
Class GuiderParametersAltAz

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

public class GuiderParametersAltAz
extends PropertyBundles

A class to optimize the parameter settings in the stella guider class. It is used with a list of input stars, given with their right ascension and declination and a set of x-y coordinates as derived from an actual guider image (use something like Sextractor to get CCD pixel coordinates). The set of stellar coordinates must match the set of x/y pixels in a sense that each star given in the position list is also found on the CCD. If we have at least two stars visible, this program optimizes for four parameters, the shift of the center of the CCD (xs, ys), the field rotation θ and the combined product of focal length and pixel scale on the CCD, f. If total reflection is in effect, you can include that by setting #KEY_MIRRORX or #KEY_MIRRORY to true.

Though θ and the focal length/pixel scale are in principle known, we optimize for these parameter, too.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static double DEFFSCALE
          The default focallength.
private static double DEFTHETA
          The default rotation angle.
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  PrintMultidimensional dist
          The multidimensional function that is to be minimized with amoeba.
static String KEY_CCD
          The list of CCD pixels as x,y pairs in pixel.
static String KEY_DATE
          If the date of the exposure is given, we calculate the field angle.
static String KEY_DECENTER
          The center of the frame.
static String KEY_FSCALE
          The key to the starting value of focallength times scale.
static String KEY_RACENTER
          The center of the frame in degrees, right ascension.
static String KEY_SITE
          If the name of the observatory is given, we do not default to Izana.
static String KEY_STARS
          The list of stars as ra,de pairs given in degrees.
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
private  List pixel
          The list of Point2D from the ccd, KEY_CCD.
private  List stars
          The list of StarDescription from KEY_STARS.
 
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
GuiderParametersAltAz(Map prop)
          Constructs a new guider parameter object and reads in the star and ccd coordinates.
 
Method Summary
static void main(String[] arg)
          Reads the properties from the command line, construct a new guider parameters object and use an Amoeba to optimize the focal length times pixel scale, the field rotation and the x/y shift.
 
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_FSCALE

public static final String KEY_FSCALE
The key to the starting value of focallength times scale.

See Also:
Constant Field Values

KEY_THETA

public static final String KEY_THETA
The key to the starting value of field angle

See Also:
Constant Field Values

KEY_XSHIFT

public static final String KEY_XSHIFT
The key to the starting value of CCD shift, x

See Also:
Constant Field Values

KEY_YSHIFT

public static final String KEY_YSHIFT
The key to the starting value of CCD shift, y

See Also:
Constant Field Values

KEY_XMIRROR

public static final String KEY_XMIRROR
The key to the mirroring along x-axis.

See Also:
Constant Field Values

KEY_YMIRROR

public static final String KEY_YMIRROR
The key to the mirroring along x-axis.

See Also:
Constant Field Values

KEY_RACENTER

public static final String KEY_RACENTER
The center of the frame in degrees, right ascension.

See Also:
Constant Field Values

KEY_DECENTER

public static final String KEY_DECENTER
The center of the frame. i.e. the pointing of the telescope at expose.

See Also:
Constant Field Values

KEY_STARS

public static final String KEY_STARS
The list of stars as ra,de pairs given in degrees.

See Also:
Constant Field Values

KEY_CCD

public static final String KEY_CCD
The list of CCD pixels as x,y pairs in pixel.

See Also:
Constant Field Values

KEY_DATE

public static final String KEY_DATE
If the date of the exposure is given, we calculate the field angle.

See Also:
Constant Field Values

KEY_SITE

public static final String KEY_SITE
If the name of the observatory is given, we do not default to Izana.

See Also:
Constant Field Values

DEFFSCALE

private static final double DEFFSCALE
The default focallength.

See Also:
Constant Field Values

DEFTHETA

private static final double DEFTHETA
The default rotation angle.

See Also:
Constant Field Values

DEFXSHIFT

private static final double DEFXSHIFT
The default x shift

See Also:
Constant Field Values

DEFYSHIFT

private static final double DEFYSHIFT
The default y shift

See Also:
Constant Field Values

DEFXMIRROR

private static final boolean DEFXMIRROR
The default x mirror

See Also:
Constant Field Values

DEFYMIRROR

private static final boolean DEFYMIRROR
The default x mirror

See Also:
Constant Field Values

stars

private List stars
The list of StarDescription from KEY_STARS.


pixel

private List pixel
The list of Point2D from the ccd, KEY_CCD.


dist

private PrintMultidimensional dist
The multidimensional function that is to be minimized with amoeba.

Constructor Detail

GuiderParametersAltAz

public GuiderParametersAltAz(Map prop)
Constructs a new guider parameter object and reads in the star and ccd coordinates. Issues warnings if their numbers do not match or if we have too few stars.

Method Detail

main

public static void main(String[] arg)
Reads the properties from the command line, construct a new guider parameters object and use an Amoeba to optimize the focal length times pixel scale, the field rotation and the x/y shift.