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.
Namespace: InnerDrive.GeographyAssembly: InnerDrive.Geography (in InnerDrive.Geography.dll) Version: 5.2.9017.0
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.
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.