stella.util
Class GuiderParametersRaDe

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

public class GuiderParametersRaDe
extends PropertyBundles

A class to optimize the parameter for a guider that's frame is fixed with respect to the ra/de grid. This is the case for the Wifsip field-of-view.


Nested Class Summary
private  class GuiderParametersRaDe.SimpleGnomic
           
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private  double ac
           
private  double cph
           
private  double dc
           
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  GuiderParametersRaDe.SimpleGnomic dist
          The multidimensional function that is to be minimized with amoeba.
private  double hc
           
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_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  double rc
           
private  SiderealTime sid
           
private  double sph
           
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
GuiderParametersRaDe(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

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 GuiderParametersRaDe.SimpleGnomic dist
The multidimensional function that is to be minimized with amoeba.


rc

private double rc

dc

private double dc

ac

private double ac

hc

private double hc

sid

private SiderealTime sid

cph

private double cph

sph

private double sph
Constructor Detail

GuiderParametersRaDe

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