Skip to content
forked from bcgov/hydrolook

Provides functions and reports for the Water Survey of Canada Hydrometric network

License

Notifications You must be signed in to change notification settings

pslota/hydrolook

 
 

Repository files navigation

An idea being explored and shaped. Open for discussion, but may never go anywhere.

Warning

The project is under active development and breaking changes will be made.

hydrolook

The hydrolook package has been developed to provide a series semi-automated reports on various facets of the Water Survey of Canada hydrometric network.

Installation

To install the hydrolook package, you need to install the remotes package then both the hydrolook, bcmaps and tidyhydat packages

install.packages("remotes")
remotes::install_github("bcgov/hydrolook")
remotes::install_github("bcgov/bcmaps")
install.packages("tidyhydat")

Then to load the package you need to use the library command. When you install hydrolook, several other packages will be installed as well. In fact hydrolook is fairly package intensive project. Several additional packages are downloaded.

library(hydrolook)

HYDAT download

To use most of the hydrolook package you will need the most recent version of the HYDAT database. The sqlite3 version can be downloaded here:

You will need to download that file, unzip it and put it somewhere on local storage. The path to the sqlite3 must be specified within each function that uses HYDAT. Or you can use the download_hydat() function from tidyhydat.

Example

This is a basic example of hydrolook usage. Reports are written in rmarkdown format and are generated using report specific commands. For example, if we wanted to generate the Net_diag report we could use the following command:

realtime_lag_report(output_type = "pdf", PROV_TERR_STATE_LOC = "AB")

station_report(output_type = "pdf", STATION_NUMBER = "08MF005")

net_diag_report(output_type = "pdf", PROV_TERR_STATE_LOC = "PE")

Project Status

This package is under continual development.

Getting Help or Reporting an Issue

To report bugs/issues/feature requests, please file an issue.

How to Contribute

If you would like to contribute to the package, please see our CONTRIBUTING guidelines.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

Copyright 2017 Province of British Columbia

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at 

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Provides functions and reports for the Water Survey of Canada Hydrometric network

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 80.5%
  • TeX 19.5%