Sunrise Module
The sunrise equation can be used to calculate the time of sunrise and sunset for any latitude, longitude, and date.
See: https://en.wikipedia.org/wiki/Sunrise_equation#Complete_calculation_on_Earth Adapted from the SolarCalc by NOAA. Source: https://dotnetfiddle.net/N3j5th
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
apparentLongitudeSun t1 t
Parameters:
float
t : float
Returns: float
|
|
Full Usage:
calculate year month day latitude longitude timeZoneId
Parameters:
int
month : int
day : int
latitude : float
longitude : float
timeZoneId : string
Returns: DayLength
|
|
Full Usage:
cosHourAngle declinationOfSun northLatitude
Parameters:
float
northLatitude : float
Returns: float
|
|
|
|
Full Usage:
declinationOfSun oc al
Parameters:
float
al : float
Returns: float
|
|
Full Usage:
degrees radians
Parameters:
float
Returns: float
|
|
Full Usage:
eccentricityEarthOrbit t
Parameters:
float
Returns: float
|
|
Full Usage:
equationOfCentreSun ma t
Parameters:
float
t : float
Returns: float
|
|
Full Usage:
equationOfTime oc ml eo ma
Parameters:
float
ml : float
eo : float
ma : float
Returns: float
|
|
Full Usage:
geomMeanAnomalySun t
Parameters:
float
Returns: float
|
|
Full Usage:
geomMeanLongitudeSun t
Parameters:
float
Returns: float
|
|
Full Usage:
hourAngleSunrise lat d
Parameters:
float
d : float
Returns: float
|
|
Full Usage:
meanObliquityOfEcliptic t
Parameters:
float
Returns: float
|
|
Full Usage:
obliquityCorrection oe t
Parameters:
float
t : float
Returns: float
|
|
Full Usage:
radians degrees
Parameters:
float
Returns: float
|
|
Full Usage:
solarNoon lng eot tzoff
Parameters:
float
eot : float
tzoff : float
Returns: float
|
|
Full Usage:
sunrise sn ha
Parameters:
float
ha : float
Returns: float
|
|
Full Usage:
sunset sn ha
Parameters:
float
ha : float
Returns: float
|
|
Full Usage:
trueLongitudeSun m1 eoc
Parameters:
float
eoc : float
Returns: float
|
|