Code Monkey home page Code Monkey logo

shydrology's Introduction

sHydrologyMap

Deprecated: now moved to sHYDAT

A Shiny-Leaflet interface and data extractor for WSC HYDAT database.

Currently built to view WSC HYDAT stream flow data click here.

Can be used in conjunction with sHydrology analysis tools.

Current functionality:

  • Select gauge from a map
    • filter locations based on period of record
  • Preview entire stream flow time-series
  • Dynamic hydrograph zooming:
    • drag-and-click zoom
    • double-click to full extent
    • optionnally use range slider
  • Export data as *.csv

Screenshot:

Screenshot

Instructions:

As coded, the sHydrology.R Shiny-Leaflet application is built to view the Water Survey of Canada (WSC) HYdrological DATabase (HYDAT) which can be downloaded here. sHydrology.R will preview all of Canada, but can be defaulted to your home province.

Download and extract the SQLite format of the database typically compressed as 'Hydat_sqlite3_YYYYMMDD.zip', where 'YYYYMMDD' is the date of release. Extract the SQLite file 'Hydat.sqlite3' and place database anywhere on your local machine.

Using RStudio, install the required packages (see below), and insert the path of the database has to be placed on Line 22 of the main app file: sHydrology.R.

Run sHydrology.R externally such that the map will open on your default web browser. (The app must be run externally in order to extract *.csv files.)

The 'Hydat.sqlite3' file is roughly 1GB in size and thus cannot be hosted on GitHub.

Required R-dependent packages:

  • leaflet
  • shiny
  • shinyjs
  • jsonlite
  • shinyBS
  • dygraphs
  • RSQLite
  • zoo
  • xts

License

sHydrology hosted on GitHub is released under the MIT license.

Contributors

Mason Marchildon P.Eng M.A.Sc, Hydrologist for the Oak Ridges Moraine Groundwater Program

shydrology's People

Contributors

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