Scripts to import, munge, and model edge of field data that is part of the Great Lakes Restoration Initiative
- Pulls storm - level water quality data for all years from sites of interest using
get_StormWQ.R
. - Munges water quality data to clean up various coding within data (esimated events, frozen vs non-frozen, etc) using
clean_WQdata.R
- Collapses data into storm-level events using
modelprep_WQdata.R
- Uses the storms identified above as inputs to RainMaker to calculate precip characteristics (e.g., instead of rainmaker identifying storm events, you tell rainmaker which storms to summarize). Script
calc_rain_variables.R
does this work by calling the modified functionsfxn_RMEvents_EOF.R
andfxn_runrainmaker.R
. - Calculates antecedent discharge metrics using nearby stream information using
fxn_calc_antdischarge.R
- Merges water quality, hydrology, and precipitation data using
merge_data.R
- Models water quality as a function of hydrology and precipitation. Does a before-and-after analysis of the field-level implementation.