Note: This notebook complements the third module in our open climate-science curriculum, "M3: Open Science for Water Resources," and serves as a demonstration of reproducible research code.
This repository computes a basin-scale water budget for the Yellowstone River basin, according to the formula:
Where
- Step 1: Compute monthly precipitation for the basin, based on GPM IMERG-Final data:
h2o/scripts/step01_IMERG-Final_monthly_precipitation.py
- Step 2: Compute monthly ET for the basin, based on MODIS MOD16 data:
h2o/scripts/step02_MODIS_MOD16_monthly_ET.py
- Step 3: Get the runoff data and compute change in storage:
h2o/scripts/step03_HYSETS_monthly_runoff_and_change_in_storage.py
The Python software dependencies can be installed using pip
:
pip install -r REQUIREMENTS
Once the dependencies are installed, you can calculate the final budget by executing these scripts in order:
python h2o/scripts/step01_IMERG-Final_monthly_precipitation.py true
python h2o/scripts/step02_MODIS_MOD16_monthly_ET.py true
python h2o/scripts/step03_HYSETS_monthly_runoff_and_change_in_storage.py
Where the argument true
provided in steps 1 and 2 will ensure that the necessary datasets are downloaded.
This demonstration project is a minimal approach to documenting a reproducible scientific workflow. There are several improvements that could be made, but we wanted to demonstrate the bare minimum requirements because many researchers don't have the time, knowledge, or stamina to implement a more sophisticated reproducible workflow. Other modules in our open-science curriculum do demonstrate more sophisticated techniques, so do check Modules 4 and 5!