Calculate satellite pass data for a local horizon using a parallel algorithm.
The data includes rise time (AOS), set time (LOS), and optionally, the maximum
elevation (MAX) above the horizon.
Namespace: Zeptomoby.OrbitTools.TrackAssembly: Zeptomoby.OrbitTools.Track (in Zeptomoby.OrbitTools.Track.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
C# |
---|
public static IList<PassData> CalcPassData( this Site site, Satellite sat, DateTime t1, DateTime t2, bool includeMax, bool useParallel ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function CalcPassData ( _ site As Site, _ sat As Satellite, _ t1 As DateTime, _ t2 As DateTime, _ includeMax As Boolean, _ useParallel As Boolean _ ) As IList(Of PassData) |
Visual C++ |
---|
[ExtensionAttribute] public: static IList<PassData^>^ CalcPassData( Site^ site, Satellite^ sat, DateTime t1, DateTime t2, bool includeMax, bool useParallel ) |
Parameters
- site
- Type: Site
The Earth site for which events are calculated.
- sat
- Type: Satellite
The satellite.
- t1
- Type: System..::..DateTime
The start time (UTC).
- t2
- Type: System..::..DateTime
The stop time (UTC).
- includeMax
- Type: System..::..Boolean
If true, maximum visibility event data is included in the returned data.
- useParallel
- Type: System..::..Boolean
If true, the algorithm executes in parallel mode.
Return Value
A list of PassData objects containing the AOS/MAX/LOS event data.Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Site. When you use instance method syntax to call this method, omit the first parameter. For more information, seeRemarks
A satellite rising above the horizon, then setting below the horizon, is
a single pass. This method will calculate all passes of a satellite over
a given local horizon for the given time period. The method will also
optionally calculate the maximum elevation above the local horizon that
the satellite obtains during each pass.
Setting the useParallel parameter to false forces the algorithm to execute
serially. Serial execution may improve performance when searching smaller
time spans.