Python for Hydrology

Main Curriculum

  • Part 0: Introduction to Python
  • Part 1: Flopy

Bonus Examples

  • General Python

Reference

  • Additional links
    • conda
    • cheat sheets
    • general python
    • Flopy and MODFLOW
    • Modflow-setup and SFRmaker
    • some galleries
    • more general references
  • Contributing
  • Glossary of jargon
Python for Hydrology
  • Here are some links you might find helpful moving forward with python
  • View page source

Here are some links you might find helpful moving forward with python¶

conda¶

  • Getting started with conda

  • General information on conda environments

  • Managing Conda Environments

  • Tutorial introduction to conda environments

  • Conda-pack

cheat sheets¶

  • conda

  • pandas

  • numpy

  • data science packages

  • Jupyter Notebook/Lab keyboard shortcuts

  • Numpy for MATLAB Users

general python¶

  • Tutorial on General Python Programming

  • Installing packages dynamically into an environment

Flopy and MODFLOW¶

  • Flopy code

  • Flopy official documentation

  • MODFLOW 6 – online documentation

  • MODFLOW 6 Example Problems – overview

  • MODFLOW 6 Example Problems

  • Flopy Tutorial Notebooks

  • Groundwater Paper

  • Another Groundwater Paper

Modflow-setup and SFRmaker¶

  • Modflow-setup code and docs

  • Modflow-setup paper

  • SFRmaker code and docs

  • SFRmaker paper

  • A worked example/workflow using Modflow-setup, SFRmaker, and PEST++

  • A worked example/workflow Groundwater paper

some galleries¶

  • matplotlib gallery

  • geopandas gallery

  • a hydrologic “data story” using pandas

more general references¶

  • numpy for matlab users

  • datetime formats (jump to the bottom of the page where it says “Format Codes”)

  • Jupyter Lab Getting Started

Previous Next

© Copyright 2022-2025, USGS Python for Hydrology instructors. Last updated on Apr 29, 2025.

Built with Sphinx using a theme provided by Read the Docs.