Skip to main content

Hydrodata downloads climate data for a USGS station as well as land use, land cover data for the corresponding watershed.

Project description

https://img.shields.io/pypi/v/hydrodata.svg https://travis-ci.com/cheginit/hydrodata.svg?branch=master Documentation Status https://zenodo.org/badge/237573928.svg

Hydrodata is a python library designed to aid in NHDPlus watershed analysis. Hydrodata is capable of downloading, preprocessing, and visualizing climatological, hydrological, and geographical datasets pertaining to a given watershed. Supported datasets include: Daymet climate, USGS streamflow, and NLCD data with further additions planned.

Features

  • Download daily climate data from the Daymet database.

  • Download watersheds geometry and characteristics using StreamStats service.

  • Compute potential evapotranspiration using ETo package.

  • Download land use, land cover, canopy and impervious data from NLCD 2016 database.

  • Download daily streamflow data from the USGS NWIS database.

  • Plot hydrological signature graphs.

https://raw.githubusercontent.com/cheginit/hydrodata/master/docs/Observed_01467087.png https://raw.githubusercontent.com/cheginit/hydrodata/master/docs/NLCD.png

Installation

To install Hydrodata, run this command in your terminal:

$ pip install hydrodata

Alternatively, it can be installed from source by first using create_env.sh script, which generates two environments using Miniconda; one for installing hydrodata and its dependencies and another for running the nhdplus.R script (for downloading a watershed geometry based on station ID or coordinates).

Before running the create_env.sh script, ensure Miniconda is installed, this can be accomplished by running the command conda on the command line. If Miniconda is not installed it can be downloaded on continuum’s site and installed on Linux as follows:

$ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
$ chmod +x Miniconda3-latest-Linux-x86_64.sh
$ bash ./Miniconda3-latest-Linux-x86_64.sh -b -p ${APP_DIR}/miniconda
$ rm -f Miniconda3-latest-Linux-x86_64.sh

where ${APP_DIR} is the installation folder.

$ git clone https://github.com/cheginit/hydrodata.git
$ cd hydrodata
$ ./create_env.sh
$ conda activate hydrodata
$ python setup.py install

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.3.0 (2020-02-19)

  • Clipped the obtained NLCD data using the watershed geometry

  • Added support for specifying the year for getting NLCD

  • Cut NHDPlus dependecy but using StreamStats and USGS APIs

  • Renamed get_lulc function to get_nlcd

0.2.0 (2020-02-09)

  • Simplified import method

  • Changed usage from rst format to ipynb

  • Autoo-formatting with the black python package

0.1.6 (2020-02-04)

  • Change docstring format based on Sphinx

  • Fixed pytest warnings and changed its working directory

0.1.5 (2020-02-02)

  • Added an example notebook with datafiles

  • Added docstring for all the functions

  • Added Module section to the documentation

  • Fixed py7zr issue

  • Changed 7z extractor from pyunpack to py7zr

  • Fixed some linting issues.

0.1.0 (2020-01-31)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydrodata-0.3.0.tar.gz (11.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hydrodata-0.3.0-py2.py3-none-any.whl (16.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file hydrodata-0.3.0.tar.gz.

File metadata

  • Download URL: hydrodata-0.3.0.tar.gz
  • Upload date:
  • Size: 11.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for hydrodata-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1222aa9401b15e02e19bbf1df195aa64c3264044a9396964346fb22e6af60c55
MD5 07260f2ba82f2bdbe49cc9b97ea1dda2
BLAKE2b-256 5ac44e799292a76b034a267f235256a075542f1b4272b800f2afaf496ea2b9d7

See more details on using hashes here.

File details

Details for the file hydrodata-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: hydrodata-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for hydrodata-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 524fef4fa4ef90f99f07af0f5825b10f0c5de025699e1b4c6e0572eb019662c3
MD5 054e9cdde353058276239862b8ec1927
BLAKE2b-256 6495ba766ff5779ee8456f4b1fc7736077adf41a9a26c4be240fa1ed347f8447

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page