deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices.wpvs.utils
Class SunPosition

java.lang.Object
  extended by org.deegree.ogcwebservices.wpvs.utils.SunPosition

public class SunPosition
extends java.lang.Object

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Constructor Summary
SunPosition()
          Constructs a sunposition at the currenttime
SunPosition(java.util.Calendar calendar)
          Constructs a sunposition with the given Calendar
SunPosition(int year, int month, int day, int hour, int minute)
           
 
Method Summary
 double getHorizontalSunPosition()
          calculates the horizontal angle of the sun depending only on hour and minute!
 double getVerticalSunposition(double latitude)
          calculates the solar altitude for given latitude, year, month, date, hour and minute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SunPosition

public SunPosition()
Constructs a sunposition at the currenttime


SunPosition

public SunPosition(java.util.Calendar calendar)
Constructs a sunposition with the given Calendar

Parameters:
calendar - a given Calendar

SunPosition

public SunPosition(int year,
                   int month,
                   int day,
                   int hour,
                   int minute)
Parameters:
year -
month -
day -
hour -
minute -
Method Detail

getVerticalSunposition

public double getVerticalSunposition(double latitude)
calculates the solar altitude for given latitude, year, month, date, hour and minute

Parameters:
latitude - latitude of the the viewers position
Returns:
the solar altitud fo given latitude

getHorizontalSunPosition

public double getHorizontalSunPosition()
calculates the horizontal angle of the sun depending only on hour and minute!

Returns:
the horizontal angle

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org