Class ncsa.horizon.coordinates.formatters.NRAOStokesFormatter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.horizon.coordinates.formatters.NRAOStokesFormatter

java.lang.Object
   |
   +----ncsa.horizon.coordinates.formatters.GenericAxisPosFormatter
           |
           +----ncsa.horizon.coordinates.formatters.NRAOStokesFormatter

public class NRAOStokesFormatter
extends GenericAxisPosFormatter
support for printing out Stokes axis positions by their two-character polarization codes, according to the NRAO Stokes Paramters Convention.

The convention is as follows:

pixel position:  -7  -6  -5  -4  -3  -2  -1   0   1   2   3   4
Stokes code:     YX  XY  YY  XX  LR  RL  LL  RR   I   Q   U   V
The I, Q, U, and V indicate the standard Stokes optical polarizations. That is, the values a the pixel position The other codes indicate

Variable Index

 o myname
 o polcodes
the supported polarization codes:

Constructor Index

 o NRAOStokesFormatter()

Method Index

 o clone()
 o toString()
 o toString(double)
return a value as a string with a specified precision
 o toString(double, int)
return a value as a string with a specified precision
 o valueOf(String)
parse the String representation of a floating point number

Variables

 o polcodes
  public final static String polcodes[]
the supported polarization codes:
 o myname
  protected final static String myname

Constructors

 o NRAOStokesFormatter
  public NRAOStokesFormatter()

Methods

 o toString
  public String toString(double val)
return a value as a string with a specified precision
Parameters:
val - the input value
Overrides:
toString in class GenericAxisPosFormatter
 o toString
  public String toString(double val,
                         int prec)
return a value as a string with a specified precision
Parameters:
val - the input value
prec - the number of places right of the decimal point
Overrides:
toString in class GenericAxisPosFormatter
 o valueOf
  public double valueOf(String s) throws NumberFormatException
parse the String representation of a floating point number
Overrides:
valueOf in class GenericAxisPosFormatter
 o clone
  public Object clone()
Overrides:
clone in class GenericAxisPosFormatter
 o toString
  public String toString()
Overrides:
toString in class GenericAxisPosFormatter

All Packages  Class Hierarchy  This Package  Previous  Next  Index