|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.util.SkyCalc
public class SkyCalc
Uses a collection of utility routines ported from skycalc.v5.c (original C code by John Thorstensen, Dartmouth College) to calculate the altitude, azimuth, airmass, and parallactic angle for a given object, date, and site.
Field Summary | |
---|---|
static java.util.TimeZone |
UT
UT TimeZone |
Constructor Summary | |
---|---|
SkyCalc(SiteDesc site)
Initialize for the given telescope site. |
Method Summary | |
---|---|
void |
calculate(WorldCoords obj,
java.util.Date date)
Given the WCS position of an object, the time/date, and a description of the telescope location, calculate the altitude of the object above the horizon, the azimuth, parallactic angle and airmass for the given time. |
double |
getAirmass()
Returns the airmass calculated in the last call to calculate(WorldCoords, Date) |
static double |
getAirmass(double alt)
Return the airmass for the given altitude in degrees. |
double |
getAltitude()
Returns the altitude in degrees calculated in the last call to calculate(WorldCoords, Date) |
double |
getAzimuth()
Returns the azimuth calculated in the last call to calculate(WorldCoords, Date) |
java.util.Date |
getLst(java.util.Date date)
Return the LST time for the given UT time at the given site. |
double |
getParallacticAngle()
Returns the parallactic angle in degrees calculated in the last call to calculate(WorldCoords, Date) |
static void |
main(java.lang.String[] args)
Test main. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.TimeZone UT
Constructor Detail |
---|
public SkyCalc(SiteDesc site)
site
- describes the location of the telescopeMethod Detail |
---|
public void calculate(WorldCoords obj, java.util.Date date)
obj
- a world coordinates position of an objectdate
- the date for the calculationpublic java.util.Date getLst(java.util.Date date)
public static double getAirmass(double alt)
public double getAltitude()
calculate(WorldCoords, Date)
public double getAzimuth()
calculate(WorldCoords, Date)
public double getParallacticAngle()
calculate(WorldCoords, Date)
public double getAirmass()
calculate(WorldCoords, Date)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |