org.deegree_impl.services.wts.util
Class SunPosition
java.lang.Object
org.deegree_impl.services.wts.util.SunPosition
- public class SunPosition
- extends java.lang.Object
- Author:
- Andreas Poth
Method Summary |
static double |
calcHorizontalSunPosition(int hour,
int minute)
calculates the horizontal angle of the sun depending only on hour and minute!
|
static double |
calcVerticalSunposition(double latitue,
int year,
int month,
int date,
int hour,
int minute)
calculates the solar altitude for given latitue, year, month, date, hour
and minute |
private static double |
getDaySinceVernalEquinox(int year,
int month,
int date)
caluculates for a given date the number of days since the last vernal
equinox. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SunPosition
public SunPosition()
calcVerticalSunposition
public static double calcVerticalSunposition(double latitue,
int year,
int month,
int date,
int hour,
int minute)
- calculates the solar altitude for given latitue, year, month, date, hour
and minute
- Parameters:
latitue
- latitue of the the viewers positionyear
- year of the observation (leap year?)month
- 1..12!hour
- 0..23minute
- 0..59
calcHorizontalSunPosition
public static double calcHorizontalSunPosition(int hour,
int minute)
- calculates the horizontal angle of the sun depending only on hour and minute!
the date isn't required.
- Parameters:
hour
- 0..23minute
- 0..59
getDaySinceVernalEquinox
private static double getDaySinceVernalEquinox(int year,
int month,
int date)
- caluculates for a given date the number of days since the last vernal
equinox. (leap years are not considered yet)