Utilities Class

ASCOM support utilities

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.Tools (in ASCOM.Tools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public class Utilities : IDisposable
Inheritance
Object    Utilities
Implements
IDisposable

Constructors

UtilitiesInitializes a new instance of the Utilities class

Methods

ConditionHA Conditions an hour angle to be in the range -12.0 to +12.0 by adding or subtracting 24.0 hours
ConditionRA Conditions a Right Ascension value to be in the range 0 to 23.999999.. hours
ConvertPressure Convert atmospheric pressure from one altitude above mean sea level to another
ConvertUnits Convert from one set of speed / temperature / pressure rain rate units to another
DegreesToDM(Double) Convert degrees to sexagesimal degrees and minutes with default delimiters DD° MM'
DegreesToDM(Double, String, String, Int32) Convert degrees to sexagesimal degrees and minutes with the specified number of minute decimal places
DegreesToDMS(Double) Convert degrees to sexagesimal degrees, minutes and seconds with default delimiters DD° MM' SS"
DegreesToDMS(Double, String, String, String, Int32) Convert degrees to sexagesimal degrees, minutes and seconds with specified second decimal places
DegreesToHM(Double) Convert degrees to sexagesimal hours and minutes with default delimiters HH:MM
DegreesToHM(Double, String, String, Int32) Convert degrees to sexagesimal hours and minutes with supplied number of minute decimal places
DegreesToHMS(Double) Convert degrees to sexagesimal hours, minutes, and seconds with default delimiters of HH:MM:SS
DegreesToHMS(Double, String, String, String, Int32) Convert degrees to sexagesimal hours, minutes, and seconds with the specified number of second decimal places
DewPoint2Humidity Calculate the relative humidity (%) given the ambient temperature (°Celsius) and dew point (°Celsius)
Dispose Dispose of the Utilities object
DMSToDegrees Convert a coordinate expressed in sexagesimal degrees to a double value (degrees)
DMSToHours Convert a coordinate expressed in sexagesimal degrees to a double value (hours)
HMSToDegrees Convert a coordinate expressed in sexagesimal hours to a double value (degrees)
HMSToHours Convert a coordinate expressed in sexagesimal hours to a double value (hours)
HoursToHM(Double) Convert hours to sexagesimal hours and minutes with default delimiters HH:MM
HoursToHM(Double, String, String, Int32) Convert hours to sexagesimal hours and minutes with supplied number of minute decimal places
HoursToHMS(Double) Convert hours to sexagesimal hours, minutes, and seconds with default delimiters HH:MM:SS
HoursToHMS(Double, String, String, String, Int32) Convert hours to sexagesimal hours, minutes, and seconds with specified number of second decimal places
Humidity2DewPoint Calculate the dew point (°Celsius) given the ambient temperature (°Celsius) and relative humidity (%)
Range Flexible routine to range a number into a given range between a lower and an higher bound.

Version Information

.NET Standard

Supported in: 2.0

See Also