Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

JP Gannon (Virginia Tech)
2025-12-11

Given: you will use the following packages.

For our second summative assessment, You will complete a task rather than a series of questions. The task is designed to draw on most of the skills we have practiced in class so far. You can find examples of everything you need to do in our course notes. The challenge here is to apply those lessons to produce a desired outcome.

You will also need the following equation to convert flow from cfs to mm/day:

Q in mm/day = 2.447 * (Qcfs / Area)

Where Qcfs is discharge in cfs and Area is watershed area in square kilometers (both given in the test data)

Task:

You need to summarize the discharge behavior of two watersheds for a project. You’ve been tasked with producing two figures to accomplish this. The watersheds are different sizes, so to facilitate comparison, all discharge must be presented in the figures as area-normalized discharge in units of mm/day. The equation to make this conversion is included above.

To summarize the discharge behavior of the Bluestone River and Wolf Creek from January 1, 1980 to January 1, 2020, produce the following two figures:

  1. A map showing the two watersheds. Make each watershed a different color based on its name and be sure there is a legend that tells which colored watershed is which. Add the median flow for each watershed in mm/day as a text label in each watershed. Be sure the map has a legend, scale bar, and north arrow.

  2. A single multi-panel figure that shows discharge for the two watersheds, where each watershed has it’s own plot (ie don’t put them both on one plot colored by name), and then another plot showing flow duration curves for both watersheds in one plot area, with the line for each watershed colored by name. The discharge plots and the flow duration curve plot should be made with discharge in units of mm/day.

*Hint: To make nice labels to add to the map for median flow, use mutate to add a new column that has the labels formatted the way you want. You can round the median flow with round() and add units with paste().

*In the project folder are the shapefile of the watershed boundaries, and gageids.csv, which contains the names of the gages/watersheds and other information, like the watershed area.

*Organize your code into chunks and describe what you did in each above the chunk. This will allow me to give you points even if the code doesn’t do what it is supposed to.

*Below the output of the two figures, describe any differences you see in the two watersheds and their discharge records. For this answer, draw on information from the map, the hydrographs, and the flow duration curves.