Giter Site home page Giter Site logo

hasi123 / hnf-peaks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dbrgn/hnf-peaks

0.0 1.0 0.0 3.71 MB

Fetch information about paragliding flights from alpine peaks.

Home Page: https://dbrgn.github.io/hnf-peaks/

Shell 12.92% Python 33.33% HTML 53.75%

hnf-peaks's Introduction

Hike&Fly Peaks Switzerland

Fetch information about paragliding flights from alpine peaks.

Map: https://dbrgn.github.io/hnf-peaks/

Prerequisites

  • Bash
  • PostgreSQL + PostGIS
  • Python 3
  • The following Python packages: beautifulsoup4, psycopg2

1: Download OSM Data

This will download the OpenStreetMap database and extract all peaks with an elevation >1000m:

./1-load-osm-data.sh <country>

2: Query XContest

This will process all peaks and query XContest for the number of flights that launched from within 350 m around the peak:

export XCONTEST_USER=...
export XCONTEST_PASS=...
./2-query-xcontest.py <country>

The data will be written to a file called data-YYYY-MM-DD.csv.

WARNING: X-Contest does rate limiting, so unless you are whitelisted by them, you will probably get blocked after a while. Furthermore, do not run this command on the evening of a hammer day, choose a time when XContest is not busy.

3: Postprocess Data

To calculate some aggregations:

./3-postprocessing.py <data-in.csv> pilots <pilots-out.csv>

To generate GeoJSON from the data:

./3-postprocessing.py <data-in.csv> geojson <geojson-out.json>

License

  • Code: GPLv3 or later
  • Data: © OpenStreetMap contributors

hnf-peaks's People

Contributors

dbrgn avatar hasi123 avatar

Watchers

 avatar

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.