Python Samples

Top  Previous  Next

These sample applications demonstrate various ways to use the Python interface for the Runtime API. There are two options for running the sample applications written for the Python interface in Windows, as described below.

1.Run the individual Python files with the Python application for each of the individual examples to try them on their own.

2.Use the "run_example.bat" batch file to run all of the sample applications. For information on the syntax for calling this batch file from the command line, see the Runtime API readme file.

 

The steps required to run the sample Python scripts in Linux are as follows.

1.Run the individual Python files with the Python application for each of the individual examples to try them on their own.

2.Use the "run_example.sh" shell script to run all of the sample applications. For information on the syntax for calling these shell scripts from the terminal see the Runtime API readme file.

 

Note: The Python files containing these examples are compatible with the Anaconda package and the coupled Spyder integrated development environment. The Python API interface is also available through the Python Wheel.

 

Jump to an application description in the following table:

 

Example

Complex Multi-Engine Asynchronous

 

 

Complex Multi-Engine Asynchronous

This example demonstrates a more complex usage of the runtime API in which four engines are used to execute two Mission Plans asynchronously and asynchronous data is used to coordinate information between the Mission Plans and the application. In this application, the C# runtime API interface is used to read and synch the epochs of a set of two line elements (TLEs). The first Mission Plan that is run reads the epoch of an input TLE and returns it to the application. This Mission Plan is executed asynchronously for each TLE in the set. The application then finds the latest epoch from the set and asynchronously calls the second Mission Plan to synch the TLEs to the latest epoch and report the results to file.

 

For more information on the topics covered by this example, see the Using the Runtime API and Asynchronous Programming guides.