GithubHelp home page GithubHelp logo

zenitheesc / astra_simulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sobester/astra_simulator

0.0 0.0 0.0 5.67 MB

ASTRA balloon flight simulation Python tool

Home Page: http://astra-planner.soton.ac.uk/

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

astra_simulator's Introduction

ASTRA High Altitude Balloon Flight Planner

University of Southampton

This README file explains how to use the ASTRA High Altitude Balloon Flight Planner without the web interface.

See the included examples and notebooks for usage.

Distribution

This module has been tested on python 2.7 and 3.6 This fork adds support for python 3.10 Use of the Anaconda Python distribution is recommended.

Run Locally with Script

First, use a virtual enviroment

$ virtualenv .venv
$ source .venv/bin/activate
(.venv)$ pip3 install -r requirements.txt

Create a Flight Profile based on the example given:

{
    "name": "example",
    "launch":{
        "time": "2023-05-10T11:00:00-03:00",
        "latitude": -15.796388,
        "longitude":-47.910330,
        "altitude": 860.0
    },
    "number_of_simulations": 50,
    "balloon_model": "TA800",
    "lift_kg": 5.5,
    "payload_weight_kg": 3.7,
    "parachute_model": "SPH72",
    "gas_type": "Helium",
    "timeout_hours": 4
}
How to get the lift parameter

This information can be either directly measured after the balloon is inflated using a baggage scale. Or it can be calculated using the HABhub SondeHub calculator, as a function of either a target burst altitude or ascent rate.

Then run the script:

(.venv)$ python3 run_simulation.py --help
usage: run_simulation.py [-h] [--now] [--time TIME] flight_profile

positional arguments:
  flight_profile  Flight Profile JSON file with launch parameters

options:
  -h, --help      show this help message and exit
  --now           Set launch time to now
  --time TIME     Set exact launch time in ISO format

For example:

(.venv)$ python3 run_simulation.py flight_profiles/example.json

Once all the steps are done your browser should pop up with a density plot of balloon landings:

example_output

KML and CSV files are created inside a folder with the name in the flight profile

Copyright 2013, University of Southampton.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.