stella.util
Class BeamSplitterFit.FitsFile

java.lang.Object
  extended by util.CommandLineParser
      extended by stella.util.BeamSplitterFit.FitsFile
Enclosing class:
BeamSplitterFit

public static class BeamSplitterFit.FitsFile
extends CommandLineParser

Reads a fits-file, extracts the counts out of it and does a beam-splitter fit.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static String FOOT
          A footer message.
private static String FOURSWITCHES
          The switches for adding properties.
private static double KSTART
          Starting default.
private static String NINESWITCHES
          The switches for adding properties.
private static double OFFXSTART
          Starting default.
private static double OFFYSTART
          Starting default.
private static String ONESWITCHES
          The switches for adding properties.
private static double SIGMASTART
          Starting default.
private static String TWOSWITCHES
          The switches for adding properties.
private static Map USE
          Detailed use of switches.
private static String ZEROSWITCHES
          The switches for adding properties.
 
Constructor Summary
BeamSplitterFit.FitsFile()
          Makes command line parsing ready.
 
Method Summary
static void main(String[] arg)
          Issue without arguments for a short usage description.
private static void prettyPrint(VectorG start, VectorG end, Point center, double halfwidth, double halfheight, boolean hole)
          Pretty printout.
 boolean process(String[] arg)
          Process the command line switches.
 
Methods inherited from class util.CommandLineParser
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZEROSWITCHES

private static final String ZEROSWITCHES
The switches for adding properties.

See Also:
Constant Field Values

ONESWITCHES

private static final String ONESWITCHES
The switches for adding properties.

See Also:
Constant Field Values

TWOSWITCHES

private static final String TWOSWITCHES
The switches for adding properties.

See Also:
Constant Field Values

FOURSWITCHES

private static final String FOURSWITCHES
The switches for adding properties.

See Also:
Constant Field Values

NINESWITCHES

private static final String NINESWITCHES
The switches for adding properties.

See Also:
Constant Field Values

USE

private static final Map USE
Detailed use of switches.


FOOT

private static final String FOOT
A footer message.

See Also:
Constant Field Values

SIGMASTART

private static final double SIGMASTART
Starting default.

See Also:
Constant Field Values

KSTART

private static final double KSTART
Starting default.

See Also:
Constant Field Values

OFFXSTART

private static final double OFFXSTART
Starting default.

See Also:
Constant Field Values

OFFYSTART

private static final double OFFYSTART
Starting default.

See Also:
Constant Field Values
Constructor Detail

BeamSplitterFit.FitsFile

public BeamSplitterFit.FitsFile()
Makes command line parsing ready.

Method Detail

process

public boolean process(String[] arg)
                throws ParseException,
                       IOException,
                       nom.tam.fits.FitsException
Process the command line switches.

Throws:
ParseException
IOException
nom.tam.fits.FitsException

prettyPrint

private static final void prettyPrint(VectorG start,
                                      VectorG end,
                                      Point center,
                                      double halfwidth,
                                      double halfheight,
                                      boolean hole)
Pretty printout.


main

public static void main(String[] arg)
                 throws ParseException,
                        IOException,
                        nom.tam.fits.FitsException
Issue without arguments for a short usage description.

Throws:
ParseException
IOException
nom.tam.fits.FitsException