/hydrolink

This repository contains Python code that explores methods that link sampling and feature information to the NHDPlusV2 and NHDHR datasets and provides a level of certainty.

Primary LanguageJupyter NotebookThe UnlicenseUnlicense

HydroLink

Documentation Status

The latest version of hydrolink can be found at https://doi.org/10.5066/P9DGZVXW

Python package with methods to hydrolink (address) point information to National Hydrography Datasets using web services. Docs and tests are in progress.

Contact

Daniel Wieferich (dwieferich@usgs.gov)

Purpose

Hydrolink refers to the linkage of spatial data to a stream network. This is similar to the analogy of providing an addresses on a road network and provides context to the hydrographic network allowing for integration of information into a common spatial framework/context. This package accepts point data and HydroLinks to versions of the National Hydrography Dataset (NHD) using MapServices. Two versions of the NHD are currently supported including the NHDPlusV2.1 Medium Resolution and the NHD High Resolution.

Requirements

Requirements.txt shows condensed version of packages, while requirements_dev shows a full list of packages used in development.

Getting Started

Install the package

Using the hydrolinker command line tool you can HydroLink all points in a CSV file.

  • Access help menu -> python -m hydrolink.hydrolinker --help
  • Example running with default options -> python -m hydrolink.hydrolinker --input_file=file_name.csv

Two Jupyter Notebooks are included to show a few basic capabilities for both NHD versions.

  • example-using-single-point-nhd-high-resolution.ipynb -> Jupyter notebook with descriptions on how to run hydrolink methods on NHD High Resolution for a single point location.
  • example-using-single-point-nhd-medium-resolution.ipynb -> Jupyter notebook with descriptions on how to run hydrolink methods on NHDPlusV2.1 for a single point location.

Documentation

Documentation can be found at this link ()

Documentation HTML can be generated using this command from the docs folder.

`` make html ``

Copyright and License

This USGS product is considered to be in the U.S. public domain, and is licensed under [unlicense](https://unlicense.org/).

This software is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. The software has not received final approval by the U.S. Geological Survey (USGS). No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. The software is provided on the condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from the authorized or unauthorized use of the software.

Credits

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