SunObservation(DateTimeOffset, IGeoLocatable, IdtTimeZone, Double) Constructor

Creates a new instance of SunObservation for the date and location specified using the given time zone for an arbitrary solar altitude.

Definition

Namespace: InnerDrive.Geography
Assembly: InnerDrive.Geography (in InnerDrive.Geography.dll) Version: 5.2.9017.0
C#
public SunObservation(
	DateTimeOffset observationDate,
	IGeoLocatable location,
	IdtTimeZone timeZone,
	double altitude = -0.85
)

Parameters

observationDate  DateTimeOffset
The date used to calculate these observations.
location  IGeoLocatable
The location to which the observations apply.
timeZone  IdtTimeZone
The time zone to use.
altitude  Double  (Optional)
The the sun's altitude above (+) or below (-) the horizon to use.

Remarks

altitude refers to the altitude of the sun in degrees above (+) or below (-) the horizon. For example, at sunset, the sun is 51' (0.85°) below the horizon, so to calculate sunset time you would use an altitude of -0.85d.

See Also