Click or drag to resize

CelestialCalculateMoonData Method

Note: This API is now obsolete.

Calculate moon data based on latitude, longitude and UTC date at the location.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
[ObsoleteAttribute("Use static method 'Celestial.CalculateCelestialTimes(double lat, double longi, DateTime date, EagerLoad el)'.")]
public static Celestial CalculateMoonData(
	double lat,
	double longi,
	DateTime date
)

Parameters

lat
Type: SystemDouble
latitude
longi
Type: SystemDouble
longitude
date
Type: SystemDateTime
DateTime

Return Value

Type: Celestial
Celestial (Partially Populated)
Examples
The following example demonstrates how to create a partially populated Celestial object that only calculates lunar data using static functions.
//Get Celestial data at N 39, W 72 on 19-Mar-2019 10:10:12 UTC
Celestial cel = Celestial.CalculateMoonData(39, -72, new DateTime(2019, 3, 19, 10, 10, 12));

Console.WriteLine(cel.MoonRise); //3/19/2019 9:27:27 PM
See Also