Skip to content

EllenSirks/pyBalloon

 
 

Repository files navigation

pyBalloon

Python scripts that can be used to simulate trajectories of tropospheric weather balloons and parachutes. Each function has documentation at the beginning of said function. These docstrings are also in html format in the docs/ subdirectory.

Dependencies

  • requests
  • pygrib
  • shapely
  • pyproj
  • pillow

Tested with:

  • Python 3.8.10
  • NumPy 1.21.5
  • SciPy 1.8.0
  • Astropy 5.2.1
  • Matplotlib 3.5.1

param_file

This file contains the various parameters used by the code, e.g. the dimensions of the balloon/parachute, various constants, and the resolution of the GFS data used.

The code creates the following folders:

  • output_folder: the output from pyBalloon is saved here.
  • forecast_data_folder: the weather forecasts models are downloaded to this folder.
  • elevation_data_folder: contains the elevation data.

The names of these folders can be changed in the param_file.

Example

Once you have changed the relevant paths in the param_file (see above) to match your setup, you can now run the code.

To run the code, use pyb_runner.py. The date should be in the format yyyymmdd, and time is UTC. I.e. for a trajectory on the 12th of April 2023 at 10am UTC, dropped from a height of 30000m at -44.72 degrees latitude and 169.24 degrees longitude, do:

python3 pyb_runner.py 20230412 10.0 -44.72 169.24 30000

Weather & elevation data

*** Note that the forecast data are not immediately uploaded after being produced, there is a lag of ~4-5 hours. The code takes this into account and therefor sometimes uses forecasts from 6 hours earlier.

About

Python scripts that can be used to simulate trajectories of stratospheric weather balloons.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%