astro
Class WcsShift
java.lang.Object
util.CommandLineParser
astro.RaDeParser
astro.WcsShift
public class WcsShift
- extends RaDeParser
A class that deals with fits files having a valid WCS defined in their
header. The user can then do calculations, like converting a ra/dec
to x/y coordinates (back and forth), or calculate a shift of the frame
to a specified. center.
|
Nested Class Summary |
static class |
WcsShift.Shift
Class to print out the fits-file name followed by pixel shift for
a central ra/de. |
|
Field Summary |
private static String |
FOOT
A footer message. |
private static String |
TWO
The command line switches. |
private static String |
ZERO
The command line switches. |
|
Constructor Summary |
WcsShift()
Constructs a new WcsShift and register the additional command line
switches. |
|
Method Summary |
protected VectorG |
process(String[] arg)
Process the command line and returns a eight-dimensional vector, with
the following meaning in its coordinates. |
| 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 |
ZERO
private static final String ZERO
- The command line switches.
- See Also:
- Constant Field Values
TWO
private static final String TWO
- The command line switches.
- See Also:
- Constant Field Values
FOOT
private static final String FOOT
- A footer message.
- See Also:
- Constant Field Values
WcsShift
public WcsShift()
- Constructs a new WcsShift and register the additional command line
switches.
process
protected VectorG process(String[] arg)
throws ParseException
- Process the command line and returns a eight-dimensional vector, with
the following meaning in its coordinates.
- The first two coordinates are ra/de,
either given or inferred from xy.
- Then the CCD x/y. Either given or inferred from ra de.
- The shift in ra/de to the central ra/de.
- The shift in pixel to the central pixel.
- Throws:
ParseException