org.minetti.astrodevice.common.coordinate.system
Class GeographicCoordinates

java.lang.Object
  extended by org.minetti.astrodevice.common.coordinate.system.GeographicCoordinates
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ObservingSite

public abstract class GeographicCoordinates
extends Object
implements Serializable

Object representing the coordinates of a geographic position in WGS84 system.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Constructor Summary
GeographicCoordinates()
           
 
Method Summary
abstract  short getElevation()
          Returns the elevation above mean sea level of the geographic position.
abstract  Coordinate getLatitude()
          Returns the latitude φ of the geographic position.
 long getLocalSiderealTime(long greenwichSiderealTime)
          Returns the local sidereal time by the sidereal time at Greenwich meridian.
abstract  Coordinate getLongitude()
          Returns the longitude λ of the geographic position.
 EquatorialCoordinates toEquatorialCoordinates(HorizontalCoordinates horizontalCoordinates, long greenwichSiderealTime)
          Returns a celestial position as equatorial coordinates.
 HorizontalCoordinates toHorizontalCoordinates(EquatorialCoordinates equatorialCoordinates, long greenwichSiderealTime)
          Returns a celestial position as horizontal coordinates.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeographicCoordinates

public GeographicCoordinates()
Method Detail

getLatitude

public abstract Coordinate getLatitude()
Returns the latitude φ of the geographic position. The range of values is:

Returns:
Latitude φ of the geographic position in degrees (°).

getLongitude

public abstract Coordinate getLongitude()
Returns the longitude λ of the geographic position. The range of values is:

Returns:
Longitude λ of the geographic position in degrees (°).

getElevation

public abstract short getElevation()
Returns the elevation above mean sea level of the geographic position.

Returns:
Elevation of the geographic position in meters (m).

getLocalSiderealTime

public final long getLocalSiderealTime(long greenwichSiderealTime)
Returns the local sidereal time by the sidereal time at Greenwich meridian.

Parameters:
greenwichSiderealTime - Sidereal time in milliseconds (ms) at Greenwich meridian (λ = 0° 00′ 00″).
Returns:
Sidereal time in milliseconds (ms) at the geographic position.

toHorizontalCoordinates

public final HorizontalCoordinates toHorizontalCoordinates(EquatorialCoordinates equatorialCoordinates,
                                                           long greenwichSiderealTime)
Returns a celestial position as horizontal coordinates.

Parameters:
equatorialCoordinates - Celestial position as equatorial coordinates.
greenwichSiderealTime - Sidereal time in milliseconds (ms) at Greenwich meridian (λ = 0° 00′ 00″).
Returns:
Horizontal coordinates of celestial position.

toEquatorialCoordinates

public final EquatorialCoordinates toEquatorialCoordinates(HorizontalCoordinates horizontalCoordinates,
                                                           long greenwichSiderealTime)
Returns a celestial position as equatorial coordinates.

Parameters:
horizontalCoordinates - Celestial position as horizontal coordinates.
greenwichSiderealTime - Sidereal time in milliseconds (ms) at Greenwich meridian (λ = 0° 00′ 00″).
Returns:
Equatorial coordinates of celestial position.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 astroDevice. All Rights Reserved.