public class Topocentre
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Topocentre |
BELFAST |
static Topocentre |
EDINBURGH |
static Topocentre |
GREENWICH |
static Topocentre |
LONDON |
static Topocentre |
MANCHESTER |
static Topocentre |
NEWCASTLE |
static Topocentre |
WICK |
Constructor and Description |
---|
Topocentre(java.lang.String name,
double longitudeDegs,
double latitudeDegs,
double heightM)
We adopt Jean Meeus' convention: longitude is positive to the west
of Greenwich; height is above sea level, in metres.
|
Modifier and Type | Method and Description |
---|---|
SkyPoint |
adjust(SkyPoint geocentric,
double deltaAU,
JulianDate jd)
Adjust the given geocentric SkyPoint of an object at distance deltaAU
(in astronomical units) to its topocentric value, ie as seen from
this Topocentre at the given time.
|
double |
calcAltitudeDegs(SkyPoint pt,
JulianDate jd)
Calculate the altitude of the given SkyPoint above the local horizon
at the given time.
|
double |
calcAzimuthDegs(SkyPoint pt,
JulianDate jd)
Calculate the azimuth (measured from South via West) of the given
SkyPoint above the local horizon at the given time.
|
protected double |
getCosPhi()
For unit testing
|
double |
getHeight()
Height above sea level, in metres.
|
Angle |
getLatitude() |
Angle |
getLongitude() |
java.lang.String |
getName() |
protected double |
getRhoCosPhiDash()
For unit testing
|
protected double |
getRhoSinPhiDash()
For unit testing
|
protected double |
getSinPhi()
For unit testing
|
public static final Topocentre BELFAST
public static final Topocentre EDINBURGH
public static final Topocentre GREENWICH
public static final Topocentre LONDON
public static final Topocentre MANCHESTER
public static final Topocentre NEWCASTLE
public static final Topocentre WICK
public Topocentre(java.lang.String name, double longitudeDegs, double latitudeDegs, double heightM)
public java.lang.String getName()
public Angle getLongitude()
public Angle getLatitude()
public double getHeight()
protected double getSinPhi()
protected double getCosPhi()
protected double getRhoSinPhiDash()
protected double getRhoCosPhiDash()
public SkyPoint adjust(SkyPoint geocentric, double deltaAU, JulianDate jd)
public double calcAltitudeDegs(SkyPoint pt, JulianDate jd)
public double calcAzimuthDegs(SkyPoint pt, JulianDate jd)