Coder Social home page Coder Social logo

avalanchemodeling's Introduction

avalancheModeling

Irstea shares online a big dataset of avalanche events. The format is in PDF and can be downloded from ftp://avalanchesftp.grenoble.cemagref.fr/epaclpa/EPA_listes_evenements/

In the scripts/ folder, one can find draft for parsing this data to tabular form.

Parsing of EPA data

Requirements

Needed

Parsing the data

Edit the path in the scripts and run:

sh parse.sh

To transform the PDFs to txt files.

Then you can parse the txt files to create a Python a list of dictionnaries for each event:

python3 txtToDict.py epaParsed/*

It will create a pickle file events.dict containing the data, ready to be used in Python.

If you want to load your data in R, transform the python dictionnaries to TSV files:

python3 dictToTsv.py

There is still some bugs in the parsing of the data, feel free to improve the scripts!

Notes on the CampToCamp.org API

Can query outings through:

https://api.camptocamp.org/outings?bbox=-549043%2C4306073%2C1466449%2C6933061&act=skitouring&date=2016-11-20%2C2016-11-26&pl=fr

Converting WGS84 GPS coordinate system to Web Mercator Bbox in Python:

from pyproj import Proj, transform
print(transform(Proj(init='epsg:4326'), Proj(init='epsg:3857'), -0.1285907, 51.50809))  # longitude first, latitude second.

Notes for reading the Shapefiles for EPA data

One can use the Python lib at https://github.com/GeospatialPython/pyshp

avalanchemodeling's People

Contributors

clovisg avatar sannera avatar oussoumame avatar

Watchers

James Cloos avatar  avatar thlr avatar

avalanchemodeling's Issues

Trello

Salut à tous,
Mon compte trello est @clovisgaliez. Quand vous aurez créé le projet et les tâches, merci de me le faire partager.

A+,
Clovis.

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.