|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
astro.AduHorizontalFit
public class AduHorizontalFit
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 |
|---|
private static final String ONESWITCHES
private static final String TWOSWITCHES
private static final String THREESWITCHES
private static final Map USE
private static final String FOOT
private static final int AVERAGE
private static final int POLYNOM
private static final int SKIP
private static final int EXTENSION
| Constructor Detail |
|---|
public AduHorizontalFit()
| Method Detail |
|---|
public boolean process(String[] arg)
throws nom.tam.fits.FitsException,
IOException,
ParseException
nom.tam.fits.FitsException
IOException
ParseException
public static void main(String[] arg)
throws ParseException,
IOException,
nom.tam.fits.FitsException
ParseException
IOException
nom.tam.fits.FitsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||