Giter VIP home page Giter VIP logo

hip17_sim's Introduction

hip17_sim

Helium hip17 density scale calculator

hip17.py is a python script that calculates the scaling factor for the helium network. Scaling factors are calculated based off h3 hex hotspot densities as described in the hip. The density dictionary can be modified to explore the impact of changing these variables. A hotspots.csv file is created from the helium api when hip17.py is first run which can be deleted to get an updated version or hotspots could be manually added to see their impact.
See https://github.com/helium/HIP/blob/master/0017-hex-density-based-transmit-reward-scaling.md

To visualize this hip17kml.py uses the hip17 class to display in Google Earth desktop. Google Earth has Network Links https://developers.google.com/kml/documentation/kml_tut#network-links so this script uses a light internal Python webserver to generate kml files for google earth dynamically. Each time the view stops in google earth the density scale is calculated for the current h3 hex. It can take a little time to calculate in dense areas so you might not want to move around too fast.

Requirements

Python 3 Uber H3 for Python https://github.com/uber/h3-py Simplekml https://readthedocs.org/projects/simplekml/

How to Run Visualization

Run the python script with python3 hip17kml.py 8001 Double click or open hip17.kml to make the connection from Google Earth desktop. This is running with Google Earth set to meters and all other default settings.

Usage

   sc=hip17.scale_calculator()
   sc.get_scale('8412ccdffffffff')
   sc.get_hotspots(h3hex)

hip17_sim's People

Contributors

gradoj avatar tehrabbitt avatar

Stargazers

 avatar Tyler Hess avatar Yalın Sayı  avatar Wilson Silva avatar

Watchers

 avatar

Forkers

tehrabbitt

hip17_sim's Issues

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.