stsci.tools
Class Position

java.lang.Object
  |
  +--stsci.tools.Position

public class Position
extends java.lang.Object

A simple position class for Ra and Dec with converts to HMS and DMS.


Field Summary
protected  double dec
           
protected static java.text.DecimalFormat dform
           
protected static java.text.DecimalFormat form
           
protected  double ra
           
 
Constructor Summary
Position(double ra, double dec)
           
Position(double h, double m, double s, double dd, double dm, double ds)
          Construct from hours minutes seconds and degrees minurtes seconds.
 
Method Summary
 java.lang.String DMS()
           
 double getDec()
           
 double getRa()
           
 java.lang.String HMS()
           
 double[] seperation(Position p)
          return sepration!nd position angle in arcseconds the given posiiton
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ra

protected double ra

dec

protected double dec

form

protected static final java.text.DecimalFormat form

dform

protected static final java.text.DecimalFormat dform
Constructor Detail

Position

public Position(double ra,
                double dec)

Position

public Position(double h,
                double m,
                double s,
                double dd,
                double dm,
                double ds)
Construct from hours minutes seconds and degrees minurtes seconds.
Method Detail

getRa

public double getRa()

getDec

public double getDec()

HMS

public java.lang.String HMS()

DMS

public java.lang.String DMS()

seperation

public double[] seperation(Position p)
return sepration!nd position angle in arcseconds the given posiiton