Swarm-NG
1.1
|
The Swarm-NG log files consists of records, these records are encoded in binary and are accessed through swarmng.logrecord.LogRecord class.
To get an instance of LogRecord, you would need to run a query on a log file and get the records in a for loop, to learn how to do that refer to Plotting results from a log file.
Source code for this tutorial can be found at py/logrecord_tutorial.py
To run the examples in this tutorial, change the code in Plotting results from a log file to use the function defined here. by default the plot tutorial uses get_semi_major_axis from this module.
The easiest way to access the planets in the log record is by using bodies_in_keplerian method. This methods converts the carteisan coordinates into Keplerian coordinates based on the center given. The result is an iterable object that has a 3-tuple as elements: