Skip to content

Instantly share code, notes, and snippets.

View mheberger's full-sized avatar

Matthew Heberger mheberger

View GitHub Profile
@mheberger
mheberger / get_watersheds_mghydro.ipynb
Last active October 25, 2023 15:16
Demo using Python to download and save watershed boundaries and rivers geodata via the mghydro.com Global Watersheds web app API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mheberger
mheberger / watersheds_usgs.py
Created November 15, 2022 13:17
Python script for delineating watersheds in the continental United States with the USGS NLDI API
#!/usr/bin/env python
# coding: utf-8
# # Demo of watershed delineation using the USGS NLDI API
#
# This demo shows you how to use Python to find the watershed for any point in the continental United States. We'll use
# anew water data service created by the US Geological Survey (USGS), called the Hydro Network Linked Data Index (NLDI).
# For more info, see: https://labs.waterdata.usgs.gov/about-nldi/index.html
#
# The service is an application programming interface (API), and lets you query geodata and other information from the