astro.fits
Class FitsTools.Stitcher

java.lang.Object
  extended by util.CommandLineParser
      extended by astro.fits.FitsTools.Stitcher
Enclosing class:
FitsTools

public static class FitsTools.Stitcher
extends CommandLineParser

Full use control on how to stitch quadrants together.


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 FOURSWITCH
           
private static String ONESWITCH
           
private static Map<String,String> USE
          Detailed use of switches.
 
Constructor Summary
FitsTools.Stitcher()
           
 
Method Summary
private static boolean anticipate(String bb)
          Possible values for true is 'true', 't', 'yes', '1'.
private static nom.tam.fits.ImageHDU joinHdu(List<nom.tam.fits.ImageHDU> src, boolean dir)
          Recursely joins a list of ImageHDU in a row or a column, until only a single HDU remains.
static void main(String[] arg)
          The command line version for cropping, flipping and stitching multi- amplifier fits.
private  boolean process(String[] arg)
          Reads the command line and writes files.
 
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

ONESWITCH

private static final String ONESWITCH
See Also:
Constant Field Values

FOURSWITCH

private static final String FOURSWITCH
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
Constructor Detail

FitsTools.Stitcher

public FitsTools.Stitcher()
Method Detail

joinHdu

private static nom.tam.fits.ImageHDU joinHdu(List<nom.tam.fits.ImageHDU> src,
                                             boolean dir)
                                      throws nom.tam.fits.FitsException
Recursely joins a list of ImageHDU in a row or a column, until only a single HDU remains. The list of ImageHDU must reflect correctly mirrored image parts (i.e. from different amplifiers) in the way they should be sewed together.

Throws:
nom.tam.fits.FitsException

process

private boolean process(String[] arg)
                 throws ParseException,
                        IOException,
                        nom.tam.fits.FitsException
Reads the command line and writes files.

Throws:
ParseException
IOException
nom.tam.fits.FitsException

anticipate

private static boolean anticipate(String bb)
Possible values for true is 'true', 't', 'yes', '1'. All others are false.


main

public static void main(String[] arg)
                 throws ParseException,
                        IOException,
                        nom.tam.fits.FitsException
The command line version for cropping, flipping and stitching multi- amplifier fits.

Throws:
ParseException
IOException
nom.tam.fits.FitsException