Exporting and saving data#
An interesting feature is the ability to export the data from the environment to a .json file, allowing you to import it later or share it with others.
Exporting the data#
You can use the rocketpy.Environment.export_environment() method to export
the environment data to a .json file.
from rocketpy import Environment
env = Environment()
env.export_environment(filename='environment.json')