Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ htmlcov/
nosetests.xml
coverage.xml

# Output from GIUH - python functions #
###################################
params/data/plots
params/data/TOPMODEL_cat_file/
params/data/HAND_30m/
params/data/HAND_DEM/
params/data/hydrofabrics/releases/beta/01a/TWI_30m/
params/data/hydrofabrics/releases/beta/01a/GIUH_30m_1/
params/data/hydrofabrics/releases/beta/01a/GIUH_30m_2/
params/data/hydrofabrics/releases/beta/01a/GIUH_30m_3/
params/data/TopModel_Results/

# Front-End #
#############
node_modules/
Expand Down
55 changes: 55 additions & 0 deletions params/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

# Project Title

**Description**:
Calculates the GIUH (Geomorphological Instantaneous Unit Hydrograph), extract the parameters for CFE from the hydrofabrics files and generates the CFE config files for the basins in the hydrofabrics

This code:

1) Download data from http://web.corral.tacc.utexas.edu/nfiedata/HAND/ for the desired HUC06 of interest
2) Allows the use of 10 or 30 meters DEM
3) Calculate a raster with the travel time. Three methods are available:
3.1) 1 = constant velocity ;
3.2) 2= varying velocity Wong, 1997 - in this case the travel time is a function of rain rate, upstream area, roughness and slope. The CFE code is will need to be modified to use this function, since at this point only a fixed relationship is used, independently of the rain rate. The user can specify a fixed rain rate if this function is to be used with the current version of CFE. If this option is selected, and rain rate is not specified, 10 mm/hour is used.
3.3) 3= varying velocity for gully and overland flow (Wong, 1997) and constant velocity in the channel. Same as 2, but with constant velocity for the channel.

To specify the parameters for gully, overland and channel velocity, as well as rainfall rate, see parameters in generate_travel_time_by_pixel.py.

4) Calculates the travel time to the river network (flowpath file in the hydrofabrics)
5) For each sub-basin in the HUC06, calculate the GIUH which correspond to the histogram of travel time (bins are for each hour, as defined in CFE)
6) Extract calibrated soil and groundwater parameters from the NWM 2.1
7) Generates the cat_XX_bmi_config_cfe.txt file needed to run CFE - the file name contains the ID of the sub-basin as per the hydrofabrics.

The "others" folder contains functions to plot the outputs.

# Dependencies

This code was tested in linux

# Software Requirements:
1) TauDEM (which requires gdal, mpiexec,... see https://github.com/dtarb/TauDEM)
2) Python if the TWI histogram per basin will be created. Anaconda distribution was used but is not a requirement. The following libraries are used in python:
- osgeo (gdal,ogr)
- numpy
- agparse
- pandas

3) Curl to download the HAND DEM data

## Usage
1) Edit the workflow_hand_twi_giuh.env file. This file contains all parameters for the runs, including the HUC06 number, path to the hydrofabrics, and environmental variabels for TAUDEM and gdal
2) Run:
./workflow_hand_twi_giuh.sh

# Data Requirements:
hydrofabrics (catchments.geojson,flowpaths.geojson,gwbucket-params-fullrouting.csv,soil-properties-fullrouting.csv).
if methods 3.2 and 3.3 are to be used, a raster file with manning information is required. This file is not provided here due to the size (16GB)
The HUC06 of the area covered by the watershed (include in the "workflow_hand_twi_giuh.env" file)
If the polygons in the hydrofabric covers multiple HUC06, all HUC06 can be specified in the "workflow_hand_twi_giuh.env" file

## Open source licensing info


## Credits and references


18,048 changes: 18,048 additions & 0 deletions params/data/hydrofabrics/releases/beta/01a/catchments.geojson

Large diffs are not rendered by default.

Loading