Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back the project https://github.com/x-malet/gc_hydrometricdata #13

Open
x-malet opened this issue Apr 17, 2018 · 2 comments
Open
Assignees
Labels
idea new: file-reader new-version:2.0 labels issues for version 2.0

Comments

@x-malet
Copy link
Member

x-malet commented Apr 17, 2018

No description provided.

@x-malet
Copy link
Member Author

x-malet commented Apr 17, 2018

This project use a web crawler to gather the data from https://eau.ec.gc.ca/.

Even the syntax is quite simple :

  • From the doc

The main interface is HydrometricDataInterface located in HydrometricData.py

from HydrometricData import HydrometricDataInterface
webStation = HydrometricDataInterface()

# getting station for the Quebec Province
webStation.getStationsForProvince('Quebec')

stationName = "01BF004"

# getting station info
print(webStation.getStationInfo(stationName))

# getting station coordinates 
print(webStation.getStationCoordinates(stationName))

# getting station data

webStation.getHistoricalStation(stationName).getData()
print(webStation.getHistoricalStation(stationName).data)

@x-malet
Copy link
Member Author

x-malet commented Apr 17, 2018

  • import project
  • refactor qc-hydrometric data
  • integration in the hydsensread project

@x-malet x-malet added new: file-reader new-version:2.0 labels issues for version 2.0 and removed ToDo labels Apr 18, 2018
@x-malet x-malet self-assigned this Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea new: file-reader new-version:2.0 labels issues for version 2.0
Projects
None yet
Development

No branches or pull requests

1 participant