AGI STK Objects 11 Send comments on this topic.
IAgVePropagatorSPICE Interface
Windows






Windows & Linux

Description

SPICE propagator interface.

Object Model


Public Methods

Public Method PropagatePropagates the satellite's path using the specified time interval.

Public Properties

Public Property AvailableBodyNamesGets a list of available body names
Public Property BodyNameBody name.
Public Property EphemerisIntervalThe propagator's ephemeris interval.
Public Property SegmentsGet the segment list.
Public Property SpiceName of SPICE file.
Public Property StartTimeThis property is deprecated. Use EphemerisInterval to configure the propagation interval. Start time. Uses DateFormat Dimension.
Public Property StepStep size. Uses Time Dimension.
Public Property StopTimeThis property is deprecated. Use EphemerisInterval to configure the propagation interval. Stop time. Uses DateFormat Dimension.

Interfaces

Implemented Interface
IAgVePropagator

Example

Set the satellite to use the SPICE propagator
[C#]Copy Code
// Set propagator to SPICE 
satellite.SetPropagatorType(AgEVePropagatorType.ePropagatorSPICE); 
 
// Get the SPICE propagator 
IAgVePropagatorSPICE propagator = satellite.Propagator as IAgVePropagatorSPICE; 
 
 

Configure the SPICE propagator
[C#]Copy Code
// 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]Copy Code
' 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]Copy Code
' 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
[MATLAB]Copy Code
% IAgSatellite satellite: Satellite object 
% IAgStkObjectRoot root: STK Object Model Root 
satellite.SetPropagatorType('ePropagatorSPICE'); 
propagator = satellite.propagator; 
propagator.Spice = 'C:\Program Files\AGI\STK 11\STKData\Spice\planets.bsp';   % Make sure this is a valid path 
propagator.BodyName = 'MARS'; 
 
propagator.StartTime = root.CurrentScenario.StartTime;  % Set to scenario start time 
propagator.StopTime = root.CurrentScenario.StopTime;    % Set to scenario stop time 
propagator.Step = 60.0; 
propagator.Propagate; 
 
 
Set satellite propagator to SPICE and propagate
[Python]Copy Code
# IAgSatellite satellite: Satellite object 
# IAgStkObjectRoot root: STK Object Model Root 
satellite.SetPropagatorType(5) # ePropagatorSPICE 
propagator = satellite.propagator 
propagator.Spice = r'C:\Program Files\AGI\STK 11\STKData\Spice\planets.bsp'   # Make sure this is a valid path 
propagator.BodyName = 'MARS' 
 
propagator.StartTime = root.CurrentScenario.StartTime  # Set to scenario start time 
propagator.StopTime = root.CurrentScenario.StopTime#    # Set to scenario stop time 
propagator.Step = 60.0 
propagator.Propagate() 
 
 

CoClasses that Implement IAgVePropagatorSPICE

© 2018 Analytical Graphics, Inc. All Rights Reserved.