net.aerith.misao.pixy.pairing
Class ExperiencedPairRefiner

java.lang.Object
  |
  +--net.aerith.misao.util.OperationObservable
        |
        +--net.aerith.misao.util.Operation
              |
              +--net.aerith.misao.pixy.pairing.ExperiencedPairRefiner

public class ExperiencedPairRefiner
extends Operation

The ExperiencedPairRefiner is a class to refine the specified list of pairs at the very last step of the examination of an image with star catalog. It calculates the limiting magnitude, removes too faint stars, calculates R.A., Decl. and magnitude of all detected stars, and calculates (x,y) of all catalog data.


Field Summary
protected  boolean assume_flat
          True when not to calculate the distortion field.
protected  AstrometricError astrometric_error
          The astrometric error.
protected  ChartMapFunction cmf
          The chart composition of catalog stars.
protected  DistortionField df
          The distortion field.
protected  boolean fix_limiting_mag
          True when not to calculate the limiting magnitude automatically.
protected  boolean fix_mag_formula_gradient
          True when to fix the gradient of the magnitude translation formula as -1.
protected  double fixed_limit_mag
          The fixed limiting magnitude.
protected  double fixed_upper_limit_mag
          The fixed upper-limit magnitude.
protected  PositionMap image_map
          The position map of the image.
protected  double limit_mag
          The limiting magnitude.
protected  MagnitudeTranslationFormula mag_formula
          The magnitude translation formula.
protected  java.util.Vector pair_list
          The list of pairs.
protected  PhotometricError photometric_error
          The photometric error.
protected  double upper_limit_mag
          The upper-limit magnitude.
 
Fields inherited from class net.aerith.misao.util.Operation
monitor_set, stopped
 
Fields inherited from class net.aerith.misao.util.OperationObservable
observer_list
 
Constructor Summary
ExperiencedPairRefiner(java.util.Vector pair_list, ChartMapFunction cmf, PositionMap map)
          Constructs a ExperiencedPairRefiner with a list of pairs between detected stars and catalog data.
 
Method Summary
 void assumeFlat()
          Sets the flag not to calculate the ditortion field.
 void fixLimitingMagnitude(double limit_mag, double upper_limit_mag)
          Fixes the limiting magnitude.
 void fixMagnitudeTranslationFormulaGradient()
          Sets the flag to fix the gradient of the magnitude translation formula as -1.
 AstrometricError getAstrometricError()
          Gets the astrometric error.
 ChartMapFunction getChartMapFunction()
          Gets the refined chart map function.
 DistortionField getDistortionField()
          Gets the refined distortion field.
 double getLimitingMagnitude()
          Gets the refined limiting magnitude.
 MagnitudeTranslationFormula getMagnitudeTranslationFormula()
          Gets the refined magnitude translation formula.
 java.util.Vector getPairList()
          Gets the refined list of pairs.
 PhotometricError getPhotometricError()
          Gets the photometric error.
 double getUpperLimitMagnitude()
          Gets the upper-limit magnitude.
 void operate()
          Operates.
 boolean ready()
          Returns true if the operation is ready to start.
 
Methods inherited from class net.aerith.misao.util.Operation
addMonitor, isStopped, perform, run, stop
 
Methods inherited from class net.aerith.misao.util.OperationObservable
addObserver, deleteObserver, notifyEnd, notifyFailed, notifyStart, notifySucceeded, notifyWarned
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

pair_list

protected java.util.Vector pair_list
The list of pairs.

image_map

protected PositionMap image_map
The position map of the image.

cmf

protected ChartMapFunction cmf
The chart composition of catalog stars.

df

protected DistortionField df
The distortion field.

mag_formula

protected MagnitudeTranslationFormula mag_formula
The magnitude translation formula.

limit_mag

protected double limit_mag
The limiting magnitude.

upper_limit_mag

protected double upper_limit_mag
The upper-limit magnitude.

astrometric_error

protected AstrometricError astrometric_error
The astrometric error.

photometric_error

protected PhotometricError photometric_error
The photometric error.

fix_mag_formula_gradient

protected boolean fix_mag_formula_gradient
True when to fix the gradient of the magnitude translation formula as -1.

assume_flat

protected boolean assume_flat
True when not to calculate the distortion field.

fix_limiting_mag

protected boolean fix_limiting_mag
True when not to calculate the limiting magnitude automatically.

fixed_limit_mag

protected double fixed_limit_mag
The fixed limiting magnitude.

fixed_upper_limit_mag

protected double fixed_upper_limit_mag
The fixed upper-limit magnitude.
Constructor Detail

ExperiencedPairRefiner

public ExperiencedPairRefiner(java.util.Vector pair_list,
                              ChartMapFunction cmf,
                              PositionMap map)
Constructs a ExperiencedPairRefiner with a list of pairs between detected stars and catalog data.
Parameters:
pair_list - the list of pairs.
cmf - the chart composition of catalog stars.
map - the position map of the image.
Method Detail

fixMagnitudeTranslationFormulaGradient

public void fixMagnitudeTranslationFormulaGradient()
Sets the flag to fix the gradient of the magnitude translation formula as -1.

assumeFlat

public void assumeFlat()
Sets the flag not to calculate the ditortion field.

fixLimitingMagnitude

public void fixLimitingMagnitude(double limit_mag,
                                 double upper_limit_mag)
Fixes the limiting magnitude.
Parameters:
limit_mag - the limiting magnitude to fix.
upper_limit_mag - the upper-limit magnitude to fix.

getChartMapFunction

public ChartMapFunction getChartMapFunction()
Gets the refined chart map function. This method must be invoked after operate method is invoked.
Returns:
the refined chart map function.

getDistortionField

public DistortionField getDistortionField()
Gets the refined distortion field. This method must be invoked after operate method is invoked.
Returns:
the refined distortion field.

getMagnitudeTranslationFormula

public MagnitudeTranslationFormula getMagnitudeTranslationFormula()
Gets the refined magnitude translation formula. This method must be invoked after operate method is invoked.
Returns:
the refined magnitude translation formula.

getLimitingMagnitude

public double getLimitingMagnitude()
Gets the refined limiting magnitude. This method must be invoked after operate method is invoked.
Returns:
the refined limiting magnitude.

getUpperLimitMagnitude

public double getUpperLimitMagnitude()
Gets the upper-limit magnitude. This method must be invoked after operate method is invoked.
Returns:
the upper-limit magnitude.

getAstrometricError

public AstrometricError getAstrometricError()
Gets the astrometric error. This method must be invoked after operate method is invoked.
Returns:
the astrometric error.

getPhotometricError

public PhotometricError getPhotometricError()
Gets the photometric error. This method must be invoked after operate method is invoked.
Returns:
the photometric error.

getPairList

public java.util.Vector getPairList()
Gets the refined list of pairs.
Returns:
the refined list of pairs.

ready

public boolean ready()
Returns true if the operation is ready to start.
Overrides:
ready in class Operation
Returns:
true if the operation is ready to start.

operate

public void operate()
             throws java.lang.Exception
Operates.
Overrides:
operate in class Operation
Throws:
java.lang.Exception - if an error occurs.