astro
Class WcsFit.Parser

java.lang.Object
  extended by util.CommandLineParser
      extended by astro.WcsFit.Parser
Direct Known Subclasses:
WcsFit.Polynomial
Enclosing class:
WcsFit

private static class WcsFit.Parser
extends CommandLineParser


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static int AVERAGE
          Starting default.
private  VectorG[][] cats
          Provided after parsing and processing of command line arguments.
private  VectorG clip
          Provided after parsing and processing of command line arguments.
private static int DEFBLOWUP
          Starting default.
private static int DEFCOMPRESS
          Starting default.
private static int EXTENSION
          Starting default.
private static String FOOT
          A footer message.
private  nom.tam.fits.ImageHDU image
          Provided after parsing and processing of command line arguments.
private  int loop
          Provided after parsing and processing of command line arguments.
private static String ONESWITCHES
          The switches for adding properties.
private static int POLYNOM
          Starting default.
private  int reject
          Provided after parsing and processing of command line arguments.
private static int SKIP
          Starting default.
private static String TWOSWITCHES
          The switches for adding properties.
private static Map<String,String> USE
          Detailed use of switches.
private  WcsProjection wcs
          Provided after parsing and processing of command line arguments.
private static String ZEROSWITCHES
          The switches for adding properties.
 
Constructor Summary
private WcsFit.Parser()
          Makes command line parsing ready.
 
Method Summary
protected  WcsProjection getDefaultProjection(Map<String,String> prop)
          Subclasses may override here if they want to provide different default properties for the wcs projection class.
protected  Map<String,String> getDefaultProperties()
          Subclasses may override here if they want to provide different default properties for the wcs projection class.
protected  Map<String,String> getOldProperties()
          Subclasses may override here if they want to provide different default properties for the wcs projection class.
 boolean postProcess(WcsFit fit, VectorG parameters)
          Called after the WCS-solution to save sigma maps or convert coordinates.
 WcsFit prepare(WcsFit fit)
           
 boolean process(String[] arg)
          After calling that, all data is either present or has default values
 VectorG solveFor(WcsFit fit)
           
 
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

ZEROSWITCHES

private static final String ZEROSWITCHES
The switches for adding properties.

See Also:
Constant Field Values

USE

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

DEFCOMPRESS

private static final int DEFCOMPRESS
Starting default.

See Also:
Constant Field Values

DEFBLOWUP

private static final int DEFBLOWUP
Starting default.

See Also:
Constant Field Values

image

private nom.tam.fits.ImageHDU image
Provided after parsing and processing of command line arguments.


wcs

private WcsProjection wcs
Provided after parsing and processing of command line arguments.


clip

private VectorG clip
Provided after parsing and processing of command line arguments.


reject

private int reject
Provided after parsing and processing of command line arguments.


loop

private int loop
Provided after parsing and processing of command line arguments.


cats

private VectorG[][] cats
Provided after parsing and processing of command line arguments.

Constructor Detail

WcsFit.Parser

private WcsFit.Parser()
Makes command line parsing ready.

Method Detail

getDefaultProperties

protected Map<String,String> getDefaultProperties()
Subclasses may override here if they want to provide different default properties for the wcs projection class.


getOldProperties

protected Map<String,String> getOldProperties()
Subclasses may override here if they want to provide different default properties for the wcs projection class.


getDefaultProjection

protected WcsProjection getDefaultProjection(Map<String,String> prop)
Subclasses may override here if they want to provide different default properties for the wcs projection class.


process

public boolean process(String[] arg)
                throws ParseException,
                       nom.tam.fits.FitsException
After calling that, all data is either present or has default values

Throws:
ParseException
nom.tam.fits.FitsException

prepare

public WcsFit prepare(WcsFit fit)

solveFor

public VectorG solveFor(WcsFit fit)
                 throws nom.tam.fits.FitsException,
                        IOException
Throws:
nom.tam.fits.FitsException
IOException

postProcess

public boolean postProcess(WcsFit fit,
                           VectorG parameters)
                    throws IOException,
                           nom.tam.fits.FitsException
Called after the WCS-solution to save sigma maps or convert coordinates.

Throws:
IOException
nom.tam.fits.FitsException