Celestial Class

The main class for handling location based celestial information.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
[SerializableAttribute]
public class Celestial
Inheritance
Object    Celestial

Remarks

This class can calculate various pieces of solar and lunar data, based on location and date

Constructors

Celestial Creates an empty Celestial.
Celestial(Double, Double, DateTime) Creates a Celestial object based on a location and specified date.
Celestial(Double, Double, DateTime, Double) Creates a Celestial object based on a location and specified date.
Celestial(Double, Double, DateTime, Double, EagerLoad) Creates a Celestial object based on a location and specified date.

Properties

AdditionalSolarTimes Additional solar event times based on the provided date and location.
AlmanacMoonName Farmers Almanac moon names
Apogee Moons apogee details based on the provided date.
AstrologicalSigns Astrological signs based on the provided date.
Obsolete.
DaySpan Daylight time span for date and location.
Equinoxes Get equinox values based on provided year.
IsMoonUp Determine if the moon is currently up, based on moon set and moon rise time at the provided location and date.
IsSunUp Determine if the sun is currently up, based on sunset and sunrise time at the provided location and date.
LunarCoordinates Lunar Coordinates.
LunarEclipse Lunar eclipse details.
MoonAltitude Moon altitude in degrees (E of N) (corrected for parallax and refraction).
MoonAzimuth Moon azimuth in degrees (E of N).
MoonCondition Moon's condition based on the provided date.
MoonDistance Estimated moon distance from the earth.
MoonIllum Moon illumination details based on the provided date.
MoonRise Moon rise time.
MoonSet Moon set time.
NightSpan Night time span for date and location.
Perigee Moons perigee details based on the provided date.
SolarCoordinates Solar Coordinates.
SolarEclipse Solar eclipse details.
SolarNoon Solar noon time.
Solstices Get solstice values based on provided year.
SunAltitude Sun altitude in degrees (E of N).
SunAzimuth Sun azimuth in degrees (E of N).
SunCondition Sun's Condition based on the provided date.
SunRise Sunrise time.
SunSet Sunset time.

Methods

CalculateCelestialTimes(Double, Double, DateTime) Calculate celestial data based on latitude, longitude and UTC date at the location.
CalculateCelestialTimes(Double, Double, DateTime, EagerLoad) Calculate celestial data based on latitude, longitude and UTC date at the location.
CalculateCelestialTimes(Double, Double, DateTime, Double) Calculate celestial data based on latitude, longitude and UTC date with hours offset at the location.
CalculateCelestialTimes(Double, Double, DateTime, EagerLoad, Double) Calculate celestial data based on latitude, longitude and UTC date with hours offset at the location.
CalculateMoonData Calculate moon data based on latitude, longitude and UTC date at the location.
Obsolete.
CalculateSunData Calculate sun data based on latitude, longitude and UTC date at the location.
Obsolete.
Celestial_LocalTime Converts all Celestial values to local time.
Obsolete.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Get_Equinoxes(DateTime) Get equinox events in UTC based on provided DateTime.
Get_Equinoxes(DateTime, Double) Get equinoxe events in local based on provided DateTime and UTC offset.
Get_Last_MoonRise(Coordinate) Gets the last moon rise from the provided point in time at the passed location.
Get_Last_MoonRise(Double, Double, DateTime) Gets the last moon rise from the provided point in time at the passed location.
Get_Last_MoonRise(Double, Double, DateTime, Double) Gets the last moon rise from the provided point in time at the passed location.
Get_Last_MoonSet(Coordinate) Gets the last moon set from the provided point in time at the passed location.
Get_Last_MoonSet(Double, Double, DateTime) Gets the last moon set from the provided point in time at the passed location.
Get_Last_MoonSet(Double, Double, DateTime, Double) Gets the last moon set from the provided point in time at the passed location.
Get_Last_SunRise(Coordinate) Gets the last sunrise from the provided point in time at the passed location.
Get_Last_SunRise(Double, Double, DateTime) Gets the last sunrise from the provided point in time at the passed location.
Get_Last_SunRise(Double, Double, DateTime, Double) Gets the last sunrise from the provided point in time at the passed location.
Get_Last_SunSet(Coordinate) Gets the last sunset from the provided point in time at the passed location.
Get_Last_SunSet(Double, Double, DateTime) Gets the last sunset from the provided point in time at the passed location.
Get_Last_SunSet(Double, Double, DateTime, Double) Gets the last sunset from the provided point in time at the passed location.
Get_Lunar_Coordinate(DateTime) Gets lunar coordinates based on UTC DateTime. Values are in degrees unless otherwise specified.
Get_Lunar_Coordinate(DateTime, Double) Gets lunar coordinates based on UTC DateTime. Values are in degrees unless otherwise specified.
Get_Lunar_Eclipse_Table Returns a List containing solar eclipse data for the century at the specified location. Century return is based on the date passed.
Get_Next_MoonRise(Coordinate) Gets the next moon rise from the provided point in time at the passed location.
Get_Next_MoonRise(Double, Double, DateTime) Gets the next moon rise from the provided point in time at the passed location.
Get_Next_MoonRise(Double, Double, DateTime, Double) Gets the next moon rise from the provided point in time at the passed location.
Get_Next_MoonSet(Coordinate) Gets the next moon set from the provided point in time at the passed location.
Get_Next_MoonSet(Double, Double, DateTime) Gets the next moon set from the provided point in time at the passed location.
Get_Next_MoonSet(Double, Double, DateTime, Double) Gets the next moon set from the provided point in time at the passed location.
Get_Next_SunRise(Coordinate) Gets the next sunrise from the provided point in time at the passed location.
Get_Next_SunRise(Double, Double, DateTime) Gets the next sunrise from the provided point in time at the passed location.
Get_Next_SunRise(Double, Double, DateTime, Double) Gets the next sunrise from the provided point in time at the passed location.
Get_Next_SunSet(Coordinate) Gets the next sunset from the provided point in time at the passed location.
Get_Next_SunSet(Double, Double, DateTime) Gets the next sunset from the provided point in time at the passed location.
Get_Next_SunSet(Double, Double, DateTime, Double) Gets the next sunset from the provided point in time at the passed location.
Get_Solar_Coordinate(DateTime) Gets solar coordinates based on UTC DateTime. Values are in degrees unless otherwise specified.
Get_Solar_Coordinate(DateTime, Double) Gets solar coordinates based on UTC DateTime. Values are in degrees unless otherwise specified.
Get_Solar_Eclipse_Table Returns a List containing solar eclipse data for the century at the specified location. Century returned is based on the date passed.
Get_Solstices(DateTime) Get solstice events in UTC based on provided DateTime.
Get_Solstices(DateTime, Double) Get solstice events in local based on provided DateTime and UTC offset.
Get_Time_at_Solar_Altitude(Coordinate, Double) Get times based on the specified Coordinate object's data and altitude. Condition (AltitudeEvents) should be checked if either Rising or Setting values return null.
Get_Time_at_Solar_Altitude(Double, Double, DateTime, Double) Get times (in UTC) at the provided solar position, date and altitude. Condition (AltitudeEvents) should be checked if either Rising or Setting values return null.
Get_Time_at_Solar_Altitude(Double, Double, DateTime, Double, Double) 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.
Get_Time_At_Solar_Azimuth(Double, Coordinate) Returns the estimated time of day at the provided coordinate based on the azimuth of the sun at the current date, with an azimuth delta of 1.
Get_Time_At_Solar_Azimuth(Double, Coordinate, Double) Returns the estimated time of day at the provided coordinate based on the azimuth of the sun at the current date with a specified azimuth delta.
GetApogees Returns Apogee object containing last and next apogees based on the specified UTC date.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetPerigees Returns Perigee object containing last and next perigees based on the specified UTC date.
GetTypeGets the Type of the current instance.
(Inherited from Object)
Lunar_LocalTime Converts lunar time values to local time.
Obsolete.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Solar_LocalTime Converts solar time values to local time.
Obsolete.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also