stella.util
Class MirrorData

java.lang.Object
  extended by stella.util.MirrorData

public class MirrorData
extends Object

Based on messured mirror positions on acquire frames, we use GuiderData objects to estimate the mirror center. Mirror scale equals one.


Nested Class Summary
static class MirrorData.Brightness
          Calculates the brightness difference.
static class MirrorData.Center
          Calcualters the mirror center.
static class MirrorData.Extinction
          Prints a column-list of inst.
 
Field Summary
private  List guiderdata
          The list of guider data found.
static String GUIDERDATAENDING
          Files with this ending are considered guider data objects.
 
Constructor Summary
MirrorData(File dir)
          Constructs a new mirror data object.
 
Method Summary
private  VectorG scanForBrightness(double ignore)
          Scans for main stars and mirrors present.
private  List scanForExtinction()
          Resolves the target star and gets its magnitude.
private  VectorG scanForMirrors(double xmin, double xmax, double ymin, double ymax)
          Scans for main stars and mirrors present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GUIDERDATAENDING

public static final String GUIDERDATAENDING
Files with this ending are considered guider data objects.

See Also:
Constant Field Values

guiderdata

private List guiderdata
The list of guider data found.

Constructor Detail

MirrorData

public MirrorData(File dir)
Constructs a new mirror data object. We scan the directory supplied for guider data objects ending in '-2.stars' and construct guider data objects out of them.

Method Detail

scanForMirrors

private VectorG scanForMirrors(double xmin,
                               double xmax,
                               double ymin,
                               double ymax)
Scans for main stars and mirrors present. From all data found in the guiderdata list, we construct the statistical mean and standard deviation of the position.

Returns:
An 8-dim vector with mirror position in 0,1, deviation in 2,3. Min/max follows in 4-8.

scanForBrightness

private VectorG scanForBrightness(double ignore)
Scans for main stars and mirrors present. From all data found in the guiderdata list, we construct the statistical mean and standard deviation of the magnitude difference. A warning is issued if we find a mirror with a lower brightness.

Parameters:
ignore - Brightness differences higher than the given value are ignored.
Returns:
An 4-dim vector with mirror defect brightness in 0, sigma in 1, min/max in 2,3.

scanForExtinction

private List scanForExtinction()
Resolves the target star and gets its magnitude. Returned is a vector giving target brightness from the image, mag from the resolved target, B-V from the resolved target and its airmass. All valid entries are packed into a list.

Returns:
A list of VectorGs containing inst-mag, V-mag, B-V, airmass.