Five places where the water ends

The stream data divides each stream into reaches. A reach is one short section of a stream. Each reach connects to the next reach downstream, and together they make a network.

I followed each reach down the network to its last reach. The color shows where that path ends. Each share below is a part of the stream length inside Utah:

  • Gulf of California, by the Green, San Juan and Colorado rivers: 56.1 percent
  • Desert sinks, the closed basins of the West Desert: 17.7 percent
  • Sevier Lake, by the Sevier and Beaver rivers: 13.3 percent
  • Great Salt Lake, by the Bear, Weber, Jordan and Provo rivers: 12.3 percent
  • Pacific Ocean, by the Raft, Snake and Columbia rivers: 0.6 percent

A closed basin has no outlet to the sea. Great Salt Lake and Sevier Lake are at the bottom of closed basins too. Together, the three places inside the state get 43 percent of Utah's stream length.

The shares measure stream length, not water. The map does not measure the volume of water that goes to each place.

After the water leaves Utah

Two arrowheads show where water leaves the state.

  • At the south state line, the Colorado River has 720 more river miles (about 1,160 km) to the Mexico border. The data stops at the border, before the Gulf.
  • The Raft River crosses into Idaho in the northwest corner. From there, its water has 1,081 river miles (about 1,740 km) to the Pacific, by the Snake and the Columbia.

Some water that ends inside Utah also leaves the state for a time. The Bear River goes out of Utah into Wyoming and Idaho, and then comes back to Great Salt Lake.

The network, not the water of today

The map shows where water goes by the drainage network. It does not show where water arrives today. The Colorado seldom gets to the Gulf, and the Sevier seldom gets to Sevier Lake. People take much water out of the Bear and the Jordan before it gets to Great Salt Lake.

Line width is flow

Line width shows the mean annual flow in cubic feet per second (cfs). The flows are model estimates in NHDPlus, from a method called EROM. They are not gage records. The model uses a 1971 to 2000 base period, and it adjusts the flows to stream gages.

Line width has six steps, one for each class of flow: under 10 cfs, 10 to 100, 100 to 500, 500 to 2,000, 2,000 to 5,000, and over 5,000 cfs. 89 percent of the stream length in Utah has a flow under 10 cfs. The key names a river whose median flow is in each class, from the Beaver River to the Green River.

Some adjusted flows are too large. On Pinto Creek, in the Escalante Desert, the adjusted flow is 1,771 cfs. Without the adjustment, it is 13 cfs. Where the adjusted flow is more than five times the flow without the adjustment, the map uses the flow without the adjustment. This rule changes 35 reaches.

A real adjustment for diversions makes the flow smaller, not larger. On the Jordan River, the adjustment changes 1,530 cfs to 750 cfs.

The wide rivers

For each place, the script joins the reaches of one width into continuous lines. Then each wide river draws as one line, without bulges where two reaches overlap.

Wide lines had a second problem. In its canyons, the Green River turns more tightly than the width of its own line. The line folded over itself and made beads. For lines 1 point or wider, the script makes each river path between two junctions simpler, to about one third of the width of its line. Then it makes the corners round. Some small knobs remain on the lower Green River.

The Colorado and the San Juan stop where they enter Lake Powell. The lake has the color of the Colorado, so the blue continues to the state line. Each lake has the color of the place where its water goes.

Inside the scripts

Two Python scripts make the map.

  • day24_raindrop_fetch.py gets the reaches in a box around Utah from the USGS water data service. It gets 30 pages of up to 2,000 reaches, 59,683 reaches in total.
  • day24_raindrop.py finds where each path ends, sets the flows and draws the map.

The excerpts below pass the default checks of the ruff linter and use its code format.

In NHDPlus, all the reaches that drain to the same last reach have the same terminal path number. The reaches in my box have 735 terminal paths. This function gives a place to the end point of each terminal path.

def classify(ends, gsl, sevier):
    pts = gpd.GeoSeries(gpd.points_from_xy(ends.x, ends.y), crs=4269).to_crs(CRS)
    near_gsl, near_sev = gsl.buffer(3000), sevier.buffer(3000)
    dest = []
    for r, p in zip(ends.itertuples(), pts, strict=True):
        vpu = str(r.vpu)
        if r.y < 33.5:
            d = "gulf"
        elif r.x < -120:
            d = "pacific"
        elif near_gsl.contains(p):
            d = "gsl"
        elif near_sev.contains(p):
            d = "sevier"
        elif vpu in ("14", "15"):
            d = "gulf"  # a disconnected piece of the Colorado's network
        elif vpu == "17":
            d = "pacific"  # a disconnected piece of the Snake's network
        else:
            d = "closed"
        dest.append(d)
    return dict(zip(ends.terminalpa, dest, strict=True))
From day24_raindrop.py. A path that ends south of 33.5° N ends on the Colorado at the Mexico border. A path that ends west of 120° W ends at the mouth of the Columbia. The two lakes get a 3 km (1.9 mi) buffer. A VPU is a region of NHDPlus. Regions 14 and 15 are the Colorado basin, and region 17 is the Pacific Northwest.

Some paths end without an outlet because the data breaks the network, for example at a dam. 118 of these pieces are in the Colorado regions. One is the upper Strawberry River, which stops at Strawberry Reservoir. Four more end just over the Idaho line. The function counts each piece with the watershed that it is in.

This function sets the flow and the line width of each reach.

def flow_and_width(g):
    suspect = (g["qa_ma"] > 0) & (g["qe_ma"] > FLOW_SUSPECT * g["qa_ma"])
    flow = np.where(suspect, g["qa_ma"], g["qe_ma"]).clip(min=0)
    w = np.asarray(FLOW_WIDTHS)[np.searchsorted(FLOW_BREAKS, flow, side="right")]
    return flow, w, int(suspect.sum())
From day24_raindrop.py. qe_ma is the adjusted mean annual flow, and qa_ma is the flow without the adjustment. FLOW_SUSPECT is 5. FLOW_BREAKS are 10, 100, 500, 2,000 and 5,000 cfs. FLOW_WIDTHS has one width for each class, from 0.2 point to 4.2 points. A flow on a break goes in the class above it.

Method

  • The streams are NHDPlus Version 2 at medium resolution (1:100,000), from USGS and the U.S. Environmental Protection Agency (EPA). The USGS water data GeoServer serves the data.
  • I left out canals, ditches, pipelines and minor divergences. A minor divergence is the smaller branch where a stream splits. These steps make the map show drainage, not plumbing.
  • I also left out the paths across Great Salt Lake and Sevier Lake, because they drew as fans.
  • The map does not draw the paths through Lake Powell, Flaming Gorge, Utah Lake and Bear Lake, so the lakes show. The shares and the river miles still include these paths. The lakes show only the part inside Utah.
  • The shares use 50,756 reaches inside Utah. The shares are of their length inside the state line.
  • The river miles after Utah come from the NHDPlus path length at the largest reach that crosses the state line.
  • Great Salt Lake is at 4,205 ft, from the USGS topobathymetric model, with causeways and dikes from OpenStreetMap. The other lakes are USGS NHD lakes from the Utah Geospatial Resource Center (UGRC). The state line comes from the UGRC county boundaries.
  • The faint streams outside Utah are only the larger NHDPlus streams, of stream order 3 and higher.

Limits

  • The flows are model estimates, not measurements.
  • The data stops at the Mexico border. The 720 river miles do not include the last part of the Colorado to the Gulf.
  • 65.8 mi (105.9 km) of the desert sinks class is in 10 small basins that end just over the Nevada and Wyoming lines. After this check, 43.2 percent of the stream length ends inside Utah. All the Great Salt Lake and Sevier Lake reaches end in Utah.
  • The rule for disconnected pieces changes the shares by a small amount.

Data and credit

USGS and the EPA provide NHDPlus Version 2. USGS provides the topobathymetric model of Great Salt Lake. OpenStreetMap contributors provide the causeways and dikes. UGRC provides the lakes from USGS NHD and the county boundaries.