jsky.plot
Class SunRiseSet
java.lang.Object
jsky.plot.SunRiseSet
public class SunRiseSet
- extends java.lang.Object
Utility class for calculating the times for sunrise, sunset and twilight for a given location and date.
Based on the algorithm found here.
- Version:
- $Revision: 1.5 $
- Author:
- Allan Brighton
Constructor Summary |
SunRiseSet(java.util.Date date,
SiteDesc site)
Calculates the times for sunrise, sunset and twilight for the given date and location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SunRiseSet
public SunRiseSet(java.util.Date date,
SiteDesc site)
- Calculates the times for sunrise, sunset and twilight for the given date and location.
- Parameters:
date
- (in) the date of interestsite
- (in) describes the observatory location
getSunset
public java.util.Date getSunset()
getSunrise
public java.util.Date getSunrise()
getCivilTwilightStart
public java.util.Date getCivilTwilightStart()
getCivilTwilightEnd
public java.util.Date getCivilTwilightEnd()
getNauticalTwilightStart
public java.util.Date getNauticalTwilightStart()
getNauticalTwilightEnd
public java.util.Date getNauticalTwilightEnd()
getAstronomicalTwilightStart
public java.util.Date getAstronomicalTwilightStart()
getAstronomicalTwilightEnd
public java.util.Date getAstronomicalTwilightEnd()
main
public static void main(java.lang.String[] args)
- Test main.