CelestialGet_Time_at_Solar_Altitude(Double, Double, DateTime, Double, Double) Method
Get times (at the specified offset) at the provided solar position, date and altitude.
Condition (AltitudeEvents) should be checked if either Rising or Setting value return null.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static AltitudeEvents Get_Time_at_Solar_Altitude(
double lat,
double longi,
DateTime date,
double alt,
double offset
)
- lat Double
- Signed latitude
- longi Double
- Signed longitude
- date DateTime
- Date
- alt Double
- Altitude in degrees
- offset Double
- UTC offset
AltitudeEventsAltitudeEvents
The following example returns local event times based on the provided lat/long, date,
solar altitude and UTC offset.
var sa = Celestial.Get_Time_at_Solar_Altitude(40.0, -74.6, new DateTime(2018,3,1), 23.4, -5);
Console.WriteLine(sa.Rising); //3/1/2018 8:49:35 AM
Console.WriteLine(sa.Setting); //3/1/2018 3:34:51 PM
Console.WriteLine(sa.Condition); //RiseAndSet;