// start here

Getting started

A short walk-through: accessing the repository, opening the notebooks in Colab, and how the course is organized.

Watch on YouTube


// how it's built

What makes it different

01

Real engineering work, not toy problems

Every notebook is built around an actual H&H task: time series, spatial data, stream gages, precipitation grids. If it would not come up on a project, it is not in the course.

02

Clear code over clever code

Readable, well-commented code and practical automation. The goal is work you can hand to a colleague, not a tour of advanced tricks.

03

AI as a working tool

Large language models are treated as a normal part of the workflow, for learning, debugging, and tightening up code, with example prompts you can reuse.


// modules · 6

What's in it

Six modules, meant to be worked through in order. Each one is a set of Colab notebooks.

01

Setup and Fundamentals

Get a Python environment going (or jump straight into Colab), then the basics: variables, lists, dictionaries, loops, functions, and reading files.

02

Time Series

Dated records the way hydrology needs them: parsing dates, resampling, filling gaps, rolling statistics, and plotting with pandas.

03

Vector Data

Points, lines, and polygons (watersheds, gages, reaches): reading shapefiles and GeoPackages with geopandas, spatial joins, and clips.

04

Raster Data

DEMs, land cover, and climate grids: reading and writing rasters, clipping to a watershed, reclassifying, and zonal summaries.

05

Stream Data

Pull years of USGS streamflow and stage data, compute flow metrics, deal with data quality, and export tidy CSV reports.

06

Precipitation Data

Gridded and gage precipitation (AORC, PRISM, NOAA): basin-average time series and a first look at extremes.


// after the basics

Where to go next

Once the fundamentals click, a few open-source projects are worth knowing: HyRiver for hydrology data, pysheds for terrain and flow, Pastas for groundwater time series, SPOTPY for calibration, and xarray for gridded data. For the kind of work this leads to, see the tools and apps I have built and the project work at AECOM. More videos, including recorded course lectures, are on the YouTube channel.

Open the course on GitHub Back to all tutorials