Giter Club home page Giter Club logo

parserep's Introduction

Parse report files generated by metheorology stations MAWS (2017)

Important

'/reps' directory contains ema.txt and ema_disdr.txt. These files contains the parse structures for emas reports without and with disdrometer respectively. Take very carefull if you modify them!

Example of use

>>> from report_parser import ReportParser
>>> a = ReportParser('reps/ema_disdr.txt')
>>> b = a.parse('reps/disdr_test.rep')
>>> b
{'date': {'day': '9', 'month': '10', 'year': '17', 'time': '22:30:06'}, 'name': 'RMA1_FDC', 'geo': {'lat': -31.5214, 'long': -64.4655, 'alt': 700.0, 'pslevel': 1.5}, 'airtemp': {'interval': 10.0, 'inst': 17.09, 'avg': 17.38, 'max': 17.58, 'min': 17.13, 'status': 'Valid'}, 'airpressure': {'interval': 10.0, 'inst': 931.0, 'avg': 930.92, 'max': 930.99, 'min': 930.84, 'status': 'Valid'}, 'relhumidity': {'interval': 10.0, 'inst': 28.0, 'avg': 28.0, 'max': 28.0, 'min': 27.0, 'status': 'Valid'}, 'precamount': {'interval': 60.0, 'inst': 0.0, 'avg': 0.0, 'max': 0.0, 'min': 0.0, 'status': 'Valid'}, 'windspeed': {'interval': 1.0, 'inst': 0.4, 'avg': 1.0, 'max': 2.0, 'min': 0.2, 'status': 'Valid'}, 'winddirect': {'interval': 1.0, 'inst': 314.0, 'avg': 309.0, 'max': 346.0, 'min': 274.0, 'status': 'Valid'}, 'disdrometer': {'sensorserial': 366212.0, 'rainintensity': 0.0, 'rainamountaccum': 3.03, 'codeSYNOP': 0.0, 'radarreflec': -9.999, 'morvisibility': 20000.0, 'kineticenergy': 0.0, 'tempsensor': 16.0, 'signalamplitude': 15066.0, 'nparticles': 0.0, 'status': '0'}}

parserep's People

Contributors

juansca avatar

Watchers

 avatar  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.