Giter Site home page Giter Site logo

vschy / hidroweb_download Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 27 KB

Download the hydrological data from Brazilian stations (HIDROWEB) and in particular the discharge and the river stage.

License: GNU General Public License v3.0

Python 100.00%
hidroweb discharge river data brazil stations

hidroweb_download's Introduction

BR_HIDROWEB_Dis

Download monthly discharge from HIDROWEB hydrological stations (Brazil) with a python script. (for Linux)

Getting Started

Prerequisites

You need to install the following packages for python 3 :

- pandas
- selenium
- geckodriver (available from conda-forge)

Installing

Before running the script you have to

1) Fill the station.csv with the stations you are interested in. One station per line with the following format:
id,name
The id is the reference code for the station and the name is the exact name (or part of it) of the station. (if the name you write differ from the name in the database it may generate error.

2) Complete the directory in which you want the discharge to download: it's the variable homedir in the "start.py" file.

3) Run the "main.py" file, for example in linux terminal :
> python3 ./main.py

4) Be careful, you will have to resolve a captcha ! 

Running the tests

If you want to test the script, the stations.csv file is already filled with the station Porto Murtinho. You just have to make the step 3 and 4.

Output

In the directory you defined you will find a new sub-directory named "BR-Porto_Murtinho" for the station Porto Murtinho for example. It will contain the data for the station and the excel file for the monthly mean discharge and the monthly mean river stage.

Authors

  • Anthony Schrapffer

MORE

If you have some suggestions, problems, or some idea to improve this code/project, just contact me ! :)

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE Version 3 - see the LICENSE.md file for details

hidroweb_download's People

Contributors

vschy avatar

Stargazers

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