AskGeo .NET  1.1.0
AskGeo Libraries for .NET
 All Classes Namespaces Functions Variables Enumerations Pages
Public Member Functions
AskGeo.Astronomy.Earth Class Reference

Provides the primary user-facing interface to the AskGeo Astronomy Library. The user should instantiate a single instance with the desired accuracy level. The library is thread safe, so a single Earth instance may be queried from several threads. More...

List of all members.

Public Member Functions

 Earth (Stream dataFileStream, Accuracy accuracy)
ZenithEvent[] GetSunZenithEvents (DateTime start, DateTime end, long maxTimeErrorMsecs, double latDeg, double lonDeg, double heightM, ZenithEventType[] types)
ZenithEvent[] GetMoonZenithEvents (DateTime start, DateTime end, long maxTimeErrorMsecs, double latDeg, double lonDeg, double heightM, ZenithEventType[] types)
TopocentricCoordinates GetSunTopocentricCoordinates (DateTime dateTime, double latDeg, double lonDeg, double heightM, bool includeRefraction)
TopocentricCoordinates GetMoonTopocentricCoordinates (DateTime dateTime, double latDeg, double lonDeg, double heightM, bool includeRefraction)
void Authorize (String s)
 Authorizes the use of the map object by providing a license String.
void Authorize (Stream stream)
 Authorizes the use of the map object by providing a license file's input stream. The stream is closed upon completion.

Detailed Description

Provides the primary user-facing interface to the AskGeo Astronomy Library. The user should instantiate a single instance with the desired accuracy level. The library is thread safe, so a single Earth instance may be queried from several threads.

An Earth instance allows queries of the Sun and Moon related events that have taken place during a given time interval at a given location, as well as queries of the topocentric positions of the Sun and Moon from a given vantage point at a given time. The events that may be queried are enumerated in the ZenithEvent.Type enum. The topocentric coordinates that are returned include the azimuth, zenith, declination, right ascension, and distance to the body from the observer.

All times are provided as .NET DateTime instances. Angles are in degrees. In general, the units of a given variable are included as a suffix in the variable name.


Constructor & Destructor Documentation

AskGeo.Astronomy.Earth.Earth ( Stream  dataFileStream,
Accuracy  accuracy 
)

Constructs an Earth object with a given accuracy level.

Parameters:
accuracyis the accuracy level (e.g., LOW_ACCURACY, MEDIUM_ACCURACY, or HIGH_ACCURACY).

Member Function Documentation

void AskGeo.Astronomy.Earth.Authorize ( String  s)

Authorizes the use of the map object by providing a license String.

Parameters:
sthe license String.
void AskGeo.Astronomy.Earth.Authorize ( Stream  stream)

Authorizes the use of the map object by providing a license file's input stream. The stream is closed upon completion.

Parameters:
streaman input stream to the license file.
TopocentricCoordinates AskGeo.Astronomy.Earth.GetMoonTopocentricCoordinates ( DateTime  dateTime,
double  latDeg,
double  lonDeg,
double  heightM,
bool  includeRefraction 
)

Returns the topocentric coordinates of the Moon at the given time and at the given location.

Parameters:
dateTimeis the time to query.
latDegis the latitude of the observer in degrees.
lonDegis the longitude of the observer in degrees.
heightMis the height in meters above the geoid (i.e., theoretical sea level).
includeRefractionshould be true to include atmospheric refraction in the model.
Returns:
a TopocentricCoordinates object that describes the azimuth, zenith, declination, right ascension and distance to the Moon from the given location at the given time.
ZenithEvent [] AskGeo.Astronomy.Earth.GetMoonZenithEvents ( DateTime  start,
DateTime  end,
long  maxTimeErrorMsecs,
double  latDeg,
double  lonDeg,
double  heightM,
ZenithEventType[]  types 
)

Returns an array of ZenithEvent objects that occurred for the Moon during the given time interval and at the given location.

Parameters:
startis the start time of the closed interval.
endis the end time of the closed interval.
maxTimeErrorMsecsis the convergence criterion used in the numerical search methods.
latDegis the latitude of the observer in degrees.
lonDegis the longitude of the observer in degrees.
heightMis the height in meters above the geoid (i.e., theoretical sea level).
typesis an array of ZenithEvent.Type enum values for the events that the user wishes to be returned.
Returns:
an array of ZenithEvent objects that occurred for the Moon during the given time interval and at the given location.
TopocentricCoordinates AskGeo.Astronomy.Earth.GetSunTopocentricCoordinates ( DateTime  dateTime,
double  latDeg,
double  lonDeg,
double  heightM,
bool  includeRefraction 
)

Returns the topocentric coordinates of the Sun at the given time and at the given location.

Parameters:
dateTimeis the time to query.
latDegis the latitude of the observer in degrees.
lonDegis the longitude of the observer in degrees.
heightMis the height in meters above the geoid (i.e., theoretical sea level).
includeRefractionshould be true to include atmospheric refraction in the model.
Returns:
a TopocentricCoordinates object that describes the azimuth, zenith, declination, right ascension and distance to the Sun from the given location at the given time.
ZenithEvent [] AskGeo.Astronomy.Earth.GetSunZenithEvents ( DateTime  start,
DateTime  end,
long  maxTimeErrorMsecs,
double  latDeg,
double  lonDeg,
double  heightM,
ZenithEventType[]  types 
)

Returns an array of ZenithEvent objects that occurred for the Sun during the given time interval and at the given location.

Parameters:
startis the start time of the closed interval.
endis the end time of the closed interval.
maxTimeErrorMsecsis the convergence criterion used in the numerical search methods.
latDegis the latitude of the observer in degrees.
lonDegis the longitude of the observer in degrees.
heightMis the height in meters above the geoid (i.e., theoretical sea level).
typesis an array of ZenithEvent.Type enum values for the events that the user wishes to be returned.
Returns:
an array of ZenithEvent objects that occurred for the Sun during the given time interval and at the given location.

The documentation for this class was generated from the following file: