DSM2 interactive map
The Delta Simulation Model II (DSM2) is a hydrodynamic model used for Sacramento-San Joaquin Delta planning and management. When working with DSM2 output, I frequently need to look up the location of channels, nodes, and stations in the model. A map of all of the channels, nodes, and stations (and more) is provided with DSM2 as a PDF file, but that file is not easy to search.
Fortunately, folks in the Delta Modeling Section of the Department of Water Resources shared shapefiles of DSM2 channels, nodes, and stations with me. With the power of Shiny and the leaflet package, it is relatively simple to build a web-based, interactive map of DSM2 channels, nodes, and stations (embedded below).1
The app2 allows for panning, zooming, and clicking on the map to identify channels, nodes, and stations. Channels are green lines, nodes are black circles, and stations are brown circles. If you already know the channel, node, or station, then you can select them via dropdown menus with search boxes, which highlights the selected feature in yellow. Because most of the Delta is tidal, the app also indicates which node represents the upstream end of the channel (i.e., a positive value of flow in DSM2 output indicates that flow is moving through a channel from the upstream to the downstream end).