astro
Class AduHorizontalFit

java.lang.Object
  extended by util.CommandLineParser
      extended by astro.AduHorizontalFit

public class AduHorizontalFit
extends CommandLineParser

Takes a (multi-extension) fits file and reads it horizontal line per horizontal line. For each line a polynomial fit up to the specified order is calculated, i.e. we start with a straight line (=polynomial of first order) up to Σ_n a_n*x^n. The RMS of the fit is calculated and print to std-out. A second command line argument specifies a width (>1) of the scan line (i.e. the fit is then done to the average ADU), a third does specify an extension to read.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static int AVERAGE
          Starting default.
private static int EXTENSION
          Starting default.
private static String FOOT
          A footer message.
private static String ONESWITCHES
          The switches for adding properties.
private static int POLYNOM
          Starting default.
private static int SKIP
          Starting default.
private static String THREESWITCHES
          The switches for adding properties.
private static String TWOSWITCHES
          The switches for adding properties.
private static Map USE
          Detailed use of switches.
 
Constructor Summary
AduHorizontalFit()
          Makes command line parsing ready.
 
Method Summary
static void main(String[] arg)
          Issue without arguments for a short usage description.
 boolean process(String[] arg)
          First command line argument is fits file, second polynomial order, third averageing width, fourth extension.
 
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

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

THREESWITCHES

private static final String THREESWITCHES
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

AVERAGE

private static final int AVERAGE
Starting default.

See Also:
Constant Field Values

POLYNOM

private static final int POLYNOM
Starting default.

See Also:
Constant Field Values

SKIP

private static final int SKIP
Starting default.

See Also:
Constant Field Values

EXTENSION

private static final int EXTENSION
Starting default.

See Also:
Constant Field Values
Constructor Detail

AduHorizontalFit

public AduHorizontalFit()
Makes command line parsing ready.

Method Detail

process

public boolean process(String[] arg)
                throws nom.tam.fits.FitsException,
                       IOException,
                       ParseException
First command line argument is fits file, second polynomial order, third averageing width, fourth extension.

Throws:
nom.tam.fits.FitsException
IOException
ParseException

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