Description
SPICE propagator interface.
Public Methods
Propagate | Propagates the satellite's path using the specified time interval. |
Public Properties
Interfaces
CoClasses that Implement IAgVePropagatorSPICE
Example
Set the satellite to use the SPICE propagator
[C#] |
---|
// Set propagator to SPICE
satellite.SetPropagatorType(AgEVePropagatorType.ePropagatorSPICE);
// Get the SPICE propagator
IAgVePropagatorSPICE propagator = satellite.Propagator as IAgVePropagatorSPICE;
|
|
Configure the SPICE propagator
[C#] |
---|
// Set the SPICE file
propagator.Spice = spiceFile;
// Configure time period
propagator.EphemerisInterval.SetExplicitInterval("1 Jan 2012 12:00:00.000", "2 Jan 2012 12:00:00.000");
propagator.Step = 60.0;
propagator.BodyName = "-200000";
// Propagate
propagator.Propagate();
|
|
Configure the SPICE propagator
[Visual Basic .NET] |
---|
' Set the SPICE file
propagator.Spice = spiceFile
' Configure time period
propagator.EphemerisInterval.SetExplicitInterval("1 Jan 2012 12:00:00.000", "2 Jan 2012 12:00:00.000")
propagator.[Step] = 60
propagator.BodyName = "-200000"
' Propagate
propagator.Propagate()
|
|
Set the satellite to use the SPICE propagator
[Visual Basic .NET] |
---|
' Set propagator to SPICE
satellite.SetPropagatorType(AgEVePropagatorType.ePropagatorSPICE)
' Get the SPICE propagator
Dim propagator As IAgVePropagatorSPICE = TryCast(satellite.Propagator, IAgVePropagatorSPICE)
|
|
Set satellite propagator to SPICE and propagate
[Python - STK API] |
---|
# IAgSatellite satellite: Satellite object
# IAgStkObjectRoot root: STK Object Model Root
satellite.SetPropagatorType(AgEVePropagatorType.ePropagatorSPICE)
propagator = satellite.Propagator
propagator.Spice = r'C:\Program Files\AGI\STK 12\STKData\Spice\planets.bsp' # Make sure this is a valid path
propagator.BodyName = 'MARS'
propagator.EphemerisInterval.SetImplicitInterval(
root.CurrentScenario.Vgt.EventIntervals.Item("AnalysisInterval")) # Link to scenario period
propagator.Step = 60.0
propagator.Propagate()
|
|
Set satellite propagator to SPICE and propagate
[MATLAB] |
---|
% IAgSatellite satellite: Satellite object
% IAgStkObjectRoot root: STK Object Model Root
satellite.SetPropagatorType('ePropagatorSPICE');
propagator = satellite.Propagator;
propagator.Spice = 'C:\Program Files\AGI\STK 12\STKData\Spice\planets.bsp'; % Make sure this is a valid path
propagator.BodyName = 'MARS';
propagator.EphemerisInterval.SetImplicitInterval( ...
root.CurrentScenario.Vgt.EventIntervals.Item("AnalysisInterval")) % Link to scenario period
propagator.Step = 60.0;
propagator.Propagate();
|
|