cfa.vo.iris.utils
Class SkyCoordinates

java.lang.Object
  extended by cfa.vo.iris.utils.SkyCoordinates

public class SkyCoordinates
extends Object

Utility class that provides static method for parsing HMS and DMS string coordinates.

Author:
olaurino

Constructor Summary
SkyCoordinates()
           
 
Method Summary
static Double getDecDeg(String dec)
          Get the decimal degrees representation of a DEC string.
static String getDecDegString(String dec)
          Return the decimal degrees representation of a DEC string, as a string.
static Double getRaDeg(String ra)
          Get the decimal degrees representation of a RA string.
static String getRaDegString(String ra)
          Return the decimal degrees representation of a RA string, as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkyCoordinates

public SkyCoordinates()
Method Detail

getRaDeg

public static Double getRaDeg(String ra)
Get the decimal degrees representation of a RA string. If the coordinate is already expressed in decimal degrees then the result is just the parsed number.

Parameters:
ra - A string representing the RA coordinate.
Returns:
The RA coordinate in decimal degrees.

getDecDeg

public static Double getDecDeg(String dec)
Get the decimal degrees representation of a DEC string. If the coordinate is already expressed in decimal degrees then the result is just the parsed number.

Parameters:
ra - A string representing the DEC coordinate.
Returns:
The DEC coordinate in decimal degrees.

getRaDegString

public static String getRaDegString(String ra)
Return the decimal degrees representation of a RA string, as a string.

Parameters:
ra - A string representing the RA coordinate.
Returns:
The RA coordinate in decimal degrees.

getDecDegString

public static String getDecDegString(String dec)
Return the decimal degrees representation of a DEC string, as a string.

Parameters:
ra - A string representing the DEC coordinate.
Returns:
The DEC coordinate in decimal degrees.


Copyright © 2013. All rights reserved.