Location#

Setting up the location is simple using the rocketpy.Environment.set_location() method. This method allows you to specify the latitude and longitude of the launch site and automatically refreshes the atmospheric conditions if a location-dependent model is being used.

from rocketpy import Environment

env = Environment()

env.set_location(latitude=32.988528, longitude=-106.975056)

env.prints.launch_site_details()

Launch Site Details

Launch Site Latitude: 32.98853°
Launch Site Longitude: -106.97506°
Reference Datum: SIRGAS2000
Launch Site UTM coordinates: 166021.44 W|E    0.00 N
Launch Site UTM zone: 31N
Launch Site Surface Elevation: 0.0 m

Important

If you use the rocketpy.Environment.set_location() method again, the atmospheric conditions will be automatically refreshed. You can update the location at any time.