cgq-qgc/HydroSensorReader

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

x-malet opened this issue · 2 comments

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

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)
  • import project
  • refactor qc-hydrometric data
  • integration in the hydsensread project