Click or drag to resize

AstroUtils Class

Class providing a suite of tested astronomy support functions to save develpment effort and provide consistant behaviour.
Inheritance Hierarchy

Namespace:  ASCOM.Astrometry.AstroUtils
Assembly:  ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public class AstroUtils : IDisposable

The AstroUtils type exposes the following members.

Public methodAstroUtils
Initializes a new instance of the AstroUtils class
Public propertyJulianDateUtc
Current Julian date based on the UTC time scale
Public propertyLeapSeconds
Sets or returns the number of leap seconds used in ASCOM Astrometry functions
Public methodCalendarToMJD
Converts a calendar day, month, year to a modified Julian date
Public methodConditionHA
Conditions an hour angle to be in the range -12.0 to +12.0 by adding or subtracting 24.0 hours
Public methodConditionRA
Conditions a Right Ascension value to be in the range 0 to 23.999999.. hours
Public methodDeltaT
Returns the current DeltaT value in seconds
Public methodDeltaUT
Proivides an estimates of DeltaUT1, the difference between UTC and UT1. DeltaUT1 = UT1 - UTC
Public methodDispose
Releases all resources owned by the AstroUtils component and readies it for disposal
Public methodEventTimes
Function that returns a list of rise and set events of a particular type that occur on a particular day at a given latitude, longitude and time zone
Public methodFormatJD
Returns a Julian date as a string formatted according to the supplied presentation format
Public methodFormatMJD
Returns a modified Julian date as a string formatted acording to the supplied presentation format
Public methodJulianDateTT
Current Julian date based on the terrestrial time (TT) time scale
Public methodJulianDateUT1
Current Julian date based on the UT1 time scale
Public methodMJDToDate
Translates a modified Julian date to a date
Public methodMJDToOADate
Translates a modified Julian date to a VB ole automation date, presented as a double
Public methodMoonIllumination
Returns the fraction of the Moon's surface that is illuminated
Public methodMoonPhase
Returns the Moon phase as an angle
Public methodRange
Flexible routine to range a number into a given range between a lower and an higher bound.
Public methodUnRefract
Computes atmospheric refraction in zenith distance.
A number of these routines are provided to support migration from the Astro32.dll. Unlike Astro32, these routines will work in both 32bit and 64bit applications.
See Also