    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

##

myname
polcodes
  the supported polarization codes:

##

NRAOStokesFormatter()

##

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

##

polcodes

      public final static String polcodes[]

  the supported polarization codes:

myname

      protected final static String myname

##

NRAOStokesFormatter

      public NRAOStokesFormatter()

##

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

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

valueOf

      public double valueOf(String s) throws NumberFormatException

  parse the String representation of a floating point number
  Overrides:
    valueOf in class GenericAxisPosFormatter

clone

      public Object clone()

Overrides:
  clone in class GenericAxisPosFormatter

toString

      public String toString()

Overrides:
  toString in class GenericAxisPosFormatter

    All Packages  Class Hierarchy  This Package  Previous  Next  Index