stella.util
Class PointingModel.FileData

java.lang.Object
  extended by util.CommandLineParser
      extended by util.PropertyParser
          extended by stella.util.PointingModel.FileData
Enclosing class:
PointingModel

public static class PointingModel.FileData
extends PropertyParser

An access class to a pointing model that reads data from a file. Parses the command line as unix-like switches. Run without arguments for a short description.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static String FOOT
          A footer message.
private static Map<String,String> PROP
          The switches directly linked to properties.
private static String SWITCHES
          The command line switches understood with one argument.
private static Map<String,String> USE
          Detailed use of switches.
private static String ZERO
          The command line switches with no arguments.
 
Constructor Summary
PointingModel.FileData()
          Constructs a new file data parsing object.
 
Method Summary
private static void addPM(VectorG ap, VectorG hp, VectorG offa, VectorG offh)
          This adds pointing model offsets to raw data.
private static void dePoison(VectorG ap, VectorG hp, VectorG offa, VectorG offh)
          Revert the pm-poisoned data to reflect azimuth and altitude on start.
private static void doRadian(VectorG ap, VectorG hp)
          Revert the pm-poisoned data to reflect azimuth and altitude on start.
private static String harmonicsHelper(int l)
          A special helper method that generates a string that is a harmonics as needed for the given order.
private static String harmonicsNamer(int l)
          A special helper method that generates a string that is a harmonics name as needed for the given order.
static void main(String[] arg)
          Reads data from a file.
private static void printSpectral(VectorG ylm)
          Prints spectral information on a harmonics solution by summing over all m's.
private static String radToPilar(double rad)
           
 
Methods inherited from class util.PropertyParser
parseMap, parseMap, parseProperties, parseProperties, parseProperties
 
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

SWITCHES

private static final String SWITCHES
The command line switches understood with one argument.

See Also:
Constant Field Values

ZERO

private static final String ZERO
The command line switches with no arguments.

See Also:
Constant Field Values

USE

private static final Map<String,String> USE
Detailed use of switches.


PROP

private static final Map<String,String> PROP
The switches directly linked to properties.


FOOT

private static final String FOOT
A footer message.

See Also:
Constant Field Values
Constructor Detail

PointingModel.FileData

public PointingModel.FileData()
Constructs a new file data parsing object.

Method Detail

main

public static void main(String[] arg)
                 throws ParseException,
                        IOException
Reads data from a file.

Throws:
ParseException
IOException

printSpectral

private static void printSpectral(VectorG ylm)
Prints spectral information on a harmonics solution by summing over all m's.


addPM

private static void addPM(VectorG ap,
                          VectorG hp,
                          VectorG offa,
                          VectorG offh)
This adds pointing model offsets to raw data. Used if only offset are available, obtained under the rule of a pointing model.


dePoison

private static void dePoison(VectorG ap,
                             VectorG hp,
                             VectorG offa,
                             VectorG offh)
Revert the pm-poisoned data to reflect azimuth and altitude on start. This is a dirty method and must be edited for each model!


radToPilar

private static final String radToPilar(double rad)

doRadian

private static void doRadian(VectorG ap,
                             VectorG hp)
Revert the pm-poisoned data to reflect azimuth and altitude on start. This is a dirty method and must be edited for each model!


harmonicsHelper

private static String harmonicsHelper(int l)
A special helper method that generates a string that is a harmonics as needed for the given order.


harmonicsNamer

private static String harmonicsNamer(int l)
A special helper method that generates a string that is a harmonics name as needed for the given order.