net.aerith.misao.util
Class MagnitudeSystem

java.lang.Object
  |
  +--net.aerith.misao.util.MagnitudeSystem

public class MagnitudeSystem
extends java.lang.Object

The MagnitudeSystem represents a set of translation formula between magnitude systems.


Field Summary
protected  double gradient_bv
          The coefficient of (B-V) for regular photometry.
protected  int method
          The method of magnitude system definition.
static int METHOD_CATALOG
          The method of magnitude system definition which represents the magnitude recorded in the catalog.
static int METHOD_DEFAULT
          The method of magnitude system definition which represents to use the default magnitude.
static int METHOD_INSTRUMENTAL
          The method of magnitude system definition which represents the instrumental magnitude.
static int METHOD_STANDARD
          The method of magnitude system definition which represents the standard system.
protected  java.lang.String system
          The magnitude system code.
 
Constructor Summary
MagnitudeSystem()
          Constructs a MagnitudeSystem.
 
Method Summary
static double calculateGradient(java.util.Vector pair_list)
          Calculates the coefficient of the (B-V) based on the specified list of pairs.
static java.util.Hashtable getDefaultMagnitudeSystemFormula()
          Gets the magnitude system formula for several CCD chips by Arne A.
static java.lang.String getDefaultMagnitudeSystemFormulaHelpMessage()
          Gets the help message on the magnitude system formula for several CCD chips by Arne A.
 double getGradientBV()
          Gets the gradient of (B-V).
static double getIcMag(double v_mag, double b_mag)
          Converts the standard V and B magnitude into the standard Ic magnitude.
 int getMethod()
          Gets the method.
static double getRcMag(double v_mag, double b_mag)
          Converts the standard V and B magnitude into the standard Rc magnitude.
static java.lang.String[] getStandardSystemCodes()
          Gets the codes of the standard system.
 java.lang.String getSystemCode()
          Gets the magnitude system code.
static double getUsnoVMag(double R_mag, double B_mag)
          Gets the preliminary V magnitude from the USNO R and B magnitude based on the Taichi Kato's formula in [vsnet-chat 700].
 void setGradientBV(double gradient)
          Sets the gradient of (B-V).
 void setMethod(int method)
          Sets the method.
 void setSystemCode(java.lang.String system)
          Sets the magnitude system code.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

METHOD_DEFAULT

public static final int METHOD_DEFAULT
The method of magnitude system definition which represents to use the default magnitude.

METHOD_STANDARD

public static final int METHOD_STANDARD
The method of magnitude system definition which represents the standard system.

METHOD_CATALOG

public static final int METHOD_CATALOG
The method of magnitude system definition which represents the magnitude recorded in the catalog.

METHOD_INSTRUMENTAL

public static final int METHOD_INSTRUMENTAL
The method of magnitude system definition which represents the instrumental magnitude.

method

protected int method
The method of magnitude system definition.

system

protected java.lang.String system
The magnitude system code.

gradient_bv

protected double gradient_bv
The coefficient of (B-V) for regular photometry.
Constructor Detail

MagnitudeSystem

public MagnitudeSystem()
Constructs a MagnitudeSystem.
Method Detail

getMethod

public int getMethod()
Gets the method.
Returns:
the number of method.

setMethod

public void setMethod(int method)
Sets the method.
Parameters:
method - the number of method.

getSystemCode

public java.lang.String getSystemCode()
Gets the magnitude system code.
Returns:
the magnitude system code.

setSystemCode

public void setSystemCode(java.lang.String system)
Sets the magnitude system code.
Parameters:
system - the magnitude system code.

getGradientBV

public double getGradientBV()
Gets the gradient of (B-V).
Returns:
the gradient of (B-V).

setGradientBV

public void setGradientBV(double gradient)
Sets the gradient of (B-V).
Parameters:
gradient - the gradient of (B-V).

getStandardSystemCodes

public static java.lang.String[] getStandardSystemCodes()
Gets the codes of the standard system.
Returns:
the codes of the standard system.

getIcMag

public static double getIcMag(double v_mag,
                              double b_mag)
Converts the standard V and B magnitude into the standard Ic magnitude.

Reference:
Natali F., Natali G., Pompei E., Pedichini F., 1994, A&A 289, 756

Parameters:
v_mag - the standard V magnitude.
b_mag - the standard B magnitude.
Returns:
the standard Ic magnitude.

getRcMag

public static double getRcMag(double v_mag,
                              double b_mag)
Converts the standard V and B magnitude into the standard Rc magnitude.
Parameters:
v_mag - the standard V magnitude.
b_mag - the standard B magnitude.
Returns:
the standard Rc magnitude.

getUsnoVMag

public static double getUsnoVMag(double R_mag,
                                 double B_mag)
Gets the preliminary V magnitude from the USNO R and B magnitude based on the Taichi Kato's formula in [vsnet-chat 700].
Parameters:
R_mag - the R magnitude.
B_mag - the B magnitude.
Returns:
the preliminary V magnitude.

getDefaultMagnitudeSystemFormula

public static java.util.Hashtable getDefaultMagnitudeSystemFormula()
Gets the magnitude system formula for several CCD chips by Arne A. Henden in "The M67 Unfiltered Photometry Experiment", 2000, Journal AAVSO vol. 29, page 35.
Returns:
the hash table of CCD chips and the coefficient of (B-V).

getDefaultMagnitudeSystemFormulaHelpMessage

public static java.lang.String getDefaultMagnitudeSystemFormulaHelpMessage()
Gets the help message on the magnitude system formula for several CCD chips by Arne A. Henden in "The M67 Unfiltered Photometry Experiment", 2000, Journal AAVSO vol. 29, page 35.
Returns:
the help message.

calculateGradient

public static double calculateGradient(java.util.Vector pair_list)
Calculates the coefficient of the (B-V) based on the specified list of pairs. Note that the second star must be a catalog star object which contains the standard V magnitude and (B-V) value.
Parameters:
pair_list - the list of pairs.
Returns:
the coefficient of the (B-V).