stella.util
Class GuiderMagnitudes

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

public class GuiderMagnitudes
extends Object

We fit data from a file to obtain a general photometric solution to the STELLA guiding camera. The function we fit is

   mag_inst=mag+a0*x+a1*(B-V)+a2.
   
The data is provided in an ascii-file, the first column is the instrumental magnitude, second is the V magnitude from the catalog, third the color index, fourth and last the airmass. The format is compliant with the output of MirrorData#Extinction.


Field Summary
private  VectorG[] aircolor
          The measurement points.
private  VectorG dmag
          The measurements, i.e.
private  GeneralLinearRegression glr
          The general linear least squres solver.
 
Constructor Summary
GuiderMagnitudes(File columns)
          The argument is the data file.
 
Method Summary
static void main(String[] arg)
          We read the input data from the file provided.
private  VectorG solve()
          Solves for the zero point, the k and epsilon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dmag

private VectorG dmag
The measurements, i.e. inst. mag minus catalog mag.


aircolor

private VectorG[] aircolor
The measurement points. First index is airmass, second B-V.


glr

private GeneralLinearRegression glr
The general linear least squres solver.

Constructor Detail

GuiderMagnitudes

public GuiderMagnitudes(File columns)
The argument is the data file.

Method Detail

solve

private VectorG solve()
Solves for the zero point, the k and epsilon.


main

public static void main(String[] arg)
We read the input data from the file provided.