astro
Interface Site

All Known Implementing Classes:
AptSite, SimpleSite, TenerifeSite

public interface Site

An interface describing a geographical location on the Earth. This interface is used mainly in astronomical context. It describes methods to set and retrieve the longitude, latitude and the elevation of a site.


Field Summary
static double[] ALTITUDES
          The altitudes of the known observatories in meters.
static double[] LATITUDES
          The latitudes of the known observatories in degrees.
static double[] LONGITUDES
          The longitudes of the known observatories in degrees, west is negativ.
static String[] OBSERVATORIES
          Known observatories, names.
 
Method Summary
 double getElevation()
          Gets the elevation above sea level of this site in meters.
 double getLatitude()
          Returns the latitude of this site.
 double getLongitude()
          Returns the longitude of this site.
 void setElevation(double height)
          Sets the elevation above sea level of this site in meters.
 void setLatitude(double phi)
          Sets the latitude of this site, in radians.
 void setLongitude(double lambda)
          Sets the longitude of this site, in radians.
 

Field Detail

OBSERVATORIES

static final String[] OBSERVATORIES
Known observatories, names.


LONGITUDES

static final double[] LONGITUDES
The longitudes of the known observatories in degrees, west is negativ.


LATITUDES

static final double[] LATITUDES
The latitudes of the known observatories in degrees.


ALTITUDES

static final double[] ALTITUDES
The altitudes of the known observatories in meters.

Method Detail

getLongitude

double getLongitude()
Returns the longitude of this site. It is negative for western longitudes. The returned value is always in radians.

Returns:
The longitude in radians.

setLongitude

void setLongitude(double lambda)
Sets the longitude of this site, in radians. It is negative for eastern longitudes.


getLatitude

double getLatitude()
Returns the latitude of this site. It is negative for southern latitudes. The returned value is always in radians.

Returns:
The latitude in radians.

setLatitude

void setLatitude(double phi)
Sets the latitude of this site, in radians. It is negative for southern latitudes.


getElevation

double getElevation()
Gets the elevation above sea level of this site in meters.


setElevation

void setElevation(double height)
Sets the elevation above sea level of this site in meters.