Water Resources Research · FlowNest

Figures and tables of the manuscript

FlowNest: A Unified Coding System for Position on Global River Networks, by Lulu Jiang, Huan Wu, Weitian Chen, Dai Yamazaki and Zhijun Huang, submitted to Water Resources Research.

These are the 16 figures and 6 tables of the manuscript with their captions. If anything here differs from the manuscript as submitted, the manuscript prevails. The code is the FlowNest Python package, github.com/hellolulujiang/flownest; the data are FullNest, doi:10.5281/zenodo.24393217 and doi:10.5281/zenodo.24393244.

Main text: figures

Figure 1
Figure 1. The terms used in this paper, on a test grid of 10 × 10 pixels with two basins, and a base threshold of 4 pixels; Figures 2–4 use the same grid. Basin pixels are light gray and pixels in neither basin are white; the two basins are labeled in blue and green, and channel pixels are bold in (b–d). (a) D8 flow directions as codes (1, east, to 128, northeast; 0, a basin outlet) and arrows. (b) Drainage area in pixels; lines join the channel pixels. (c) Pixel level, with pixels labeled i0 to i99: channel pixel i44 (framed), its unit catchment (orange; 5 pixels), and the rest of its upstream catchment (light orange; 17 more pixels, 22 in all). (d) Reach level, each reach a line of its own color, kept in Figures 2 and 4: the reach of i34 and i44 (framed), its unit catchment (orange; 9 pixels, its 2 channel pixels included), which with the reach is its subbasin (dark orange outline), and the rest of its upstream catchment (light orange).

Figure_01: PNG · PDF (0.2 MB)

Figure 2
Figure 2. Four ways to store a tree (Karwin, 2010), shown on the 10 reaches of the test grid of Figure 1. (a) The reaches, colored as in Figure 1d, with serial identifiers 1 to 10 assigned row by row (Figures 3 and 4 number by rank instead). Reach 4 is framed; orange is its unit catchment and light orange the rest of its upstream catchment. (b) The reaches in depth-first order, larger drainage area first. Each bar covers a reach and the reaches upstream of it, which are consecutive ranks: for reach 4, whose rank is also 4, ranks 4 to 6 (reaches 4, 1, and 2). (c) What each model stores for each reach; a reach at a basin outlet stores itself as the reach downstream. Bold entries are those that give reach 4 and the reaches upstream of it. “Stored” counts the numbers that each model adds to a list of the 10 reaches (the closure table adds 30 rows of two numbers), and “Queries” the lookups needed to find the reaches upstream of one reach. In (b) and (c), orange marks reach 4 and light orange the reaches upstream of it. FlowNest uses the nested set, with the rank itself as the identifier (Figure 3).

Figure_02: PNG · PDF (0.1 MB)

Figure 3
Figure 3. One depth-first numbering of the channel pixels makes every path, basin, and upstream catchment one range of numbers (test grid of Figure 1). (a) A channel pixel stores its pixel_seq_id (bold), its rank in depth-first order; a hillslope pixel stores minus the pixel_seq_id of the channel pixel it first drains to. A and B are channel pixels 4 and 13 (framed); orange is the unit catchment of A and light orange the rest of its upstream catchment. (b) Each bar is one range of pixel_seq_id, written at one end of the bar. The main stem is 1 to 8, and the flow path from B to the outlet is two ranges, 10 to 13 and 1 to 4. A catchment (marked ±) comprises the pixels that store a number of its range with either sign: 4 or −4 for the unit catchment of A, and 4 to 13 or −4 to −13 for its upstream catchment. (c) Rows of the pixel table, with its eight columns; row and col count from 0 at the top left of (a), and each test pixel is taken as 1.00 km². In (b) and (c), orange marks A and light orange the channel pixels upstream of it.

Figure_03: PNG · PDF (0.1 MB)

Figure 4
Figure 4. A coarser threshold removes channel pixels and merges reaches; no pixel is renumbered (test grid of Figure 3). (a) The reach raster at 4 pixels. A channel pixel stores the reach_seq_id of its reach (bold), and a hillslope pixel minus that of the reach it first drains to. Each reach is a line in its own color, as in Figure 1d, and the numbers in the two basins are blue and green. Reach 2 has one channel pixel (framed); orange is its unit catchment and light orange the rest of its upstream catchment. (b) The same raster at 8 pixels. It is not stored: each number of (a), without its sign, is replaced using the last column of (c) and made negative where the pixel is not a channel pixel at 8 pixels. Dashed gray lines mark the channel pixels of (a) that become hillslope pixels. Reaches 6 and 8 are removed, and reach 10, the second basin, becomes reach 6. Reach 2 now has 3 channel pixels (framed); its unit catchment grows from 2 to 16 pixels, and its upstream catchment, 50 pixels, does not change. (c) The reach tables at both thresholds; break_threshold is break_threshold_km2 of Table 2, here in pixels. Each reach at 8 pixels (a box) starts on a row of the 4-pixel table with break_threshold ≥ 8 (bold). It keeps that row’s upstream_channel_pixel_count, which still counts the channel pixels at 4 pixels, while its channel_pixel_count counts only those kept at 8 pixels. The last column gives, for each reach at 4 pixels, the reach at 8 pixels whose unit catchment contains its own. A reach keeps its downstream_end_pixel_seq_id at both thresholds (bold), while its reach_seq_id may change.

Figure_04: PNG · PDF (0.1 MB)

Figure 5
Figure 5. Each nested object, from the globe to one reach, is one range of numbers (MERIT Hydro, base threshold 1 km²). (a) Each bar is one range of pixel_seq_id, as wide as its number of channel pixels; the thin line below it is the range of reach_seq_id of the same object (pixels and reaches are numbered separately). A label a + 1 … + n means the n numbers after a. Each row enlarges the outlined orange part of the row above: the 9 continental Level-1 groups, Level-1 group 7 (North and Central America), Level-2 group 78, Level-3 group 782, the Columbia River basin, the Little Blackfoot River (main stem blue), Telegraph Creek with its tributaries (its path dark yellow), and reach 65,454,317. A further 25 Level-1 groups, numbered after group 9, hold 0.10% of the channel pixels and are too narrow to show. (b) From channel pixel p (◇ in (a)), gray arrows lead to larger objects, one stored field per step, and orange arrows lead back to smaller ones, one range per step. From a Level-3 group the arrow leads to its range of paths, because the FullBasin identifiers of its basins are not one range.

Figure_05: PNG · PDF (1.0 MB)

Figure 6
Figure 6. How the files of Table 3 are used together. (a) The files of each level in three formats: rasters (GeoTIFF) for overlay with other grids, tables (Parquet) for lookup by number, and vectors (GeoParquet) for maps and web display. (b) An example: the upstream catchment of reach 65,454,196, the reach at the mouth of the Little Blackfoot River of Figure 5. Its row of the reach table gives the reach and its 511 upstream reaches as one range, [65,454,196, 65,454,708). Raster route: the same row of the location table gives the window of the upstream catchment (531 × 604 pixels); only this window of the reach_seq_id raster is read, and the pixels whose absolute value is in the range are kept (channel pixels are drawn three pixels wide). Vector route: the same 512 rows of the unit-catchment file dissolve into one polygon, and the same rows of the line file give the network. Both routes give the same 180,446 pixels, and so does the pixel_seq_id raster with the range of the 8,442 channel pixels upstream of the river mouth. A basin is used in the same way from its row of the basin table.

Figure_06: PNG · PDF (0.1 MB)

Figure 7
Figure 7. Subbasins nest across thresholds: the Little Blackfoot River (1,066 km²) at 25, 5, and 1 km². (a–c) The subbasins at each threshold, with the reaches in blue; colors only distinguish subbasins, and the thick black lines in (b) and (c) are the subbasin boundaries at 25 and 5 km², respectively. Telegraph Creek (orange outline) is one subbasin at 25 km², 5 at 5 km², and 29 at 1 km². (d–f) Telegraph Creek and the reach at its mouth at each threshold. The reach at the mouth and its path get new numbers at each threshold (below each panel), but the reach ends at the same channel pixel (●), whose pixel_seq_id, 1,088,850,437, does not change; downstream_end_pixel_seq_id therefore links each reach to the reach that ends at the same pixel at any finer threshold. Dark gray lines are the subbasin boundaries at the threshold of the panel; white is the rest of Telegraph Creek and light gray the rest of the Little Blackfoot River basin.

Figure_07: PNG · PDF (0.2 MB)

Figure 8
Figure 8. The numbering gives the nesting and a calibration order of the 174 GRDC gauges of the Columbia River basin (MERIT Hydro). (a) The gauges, numbered 1 to 174 in pixel_seq_id order (basin_station_seq_id), and the unit catchment of each gauge, the land that drains to it without passing another gauge, colored by calibration round (1 plus the longest chain of gauges upstream). Gauge 1 (GRDC 4115201) is the most downstream gauge; the rivers shown drain at least 2,000 km². (b) The Clark Fork upstream of gauge 50 (GRDC 4115348, Clark Fork below Missoula; 23,306 km²), with the five gauges upstream of it and the boundaries of the unit catchments of all six gauges (orange lines); the rivers shown drain at least 200 km². (c) Three columns of the GRDC crosswalk for gauges 50 to 55; the grdc_station_id does not show which gauge lies upstream of which. (d) The upstream catchment of each of these gauges as a range of pixel_seq_id, which begins at the pixel of the gauge (○). The top bar is the whole Columbia, with the range of gauge 50 boxed and enlarged below; the number in parentheses is upstream_station_count, the gauges upstream of a gauge, itself included. The ranges of gauges 51 to 55 lie inside that of gauge 50, those of 52 and 53 inside that of 51, and that of 55 inside that of 54. In decreasing order of number, from 55 to 50, each gauge comes after all gauges upstream of it, so the numbers alone give an order in which the gauges can be calibrated.

Figure_08: PNG · PDF (1.4 MB)

Figure 9
Figure 9. All 10,241 GRDC gauges, numbered so that the gauges upstream of each gauge are one range (MERIT Hydro). (a) The unit catchment of each gauge; colors only distinguish adjacent unit catchments, and gray land has no gauge downstream (42.9% of the numbered land). Each label gives the numbers of a gauge with no gauge downstream and of the gauges upstream of it, one range (Danube, 1,878 to 2,194). (b) Selected rows and 8 of the 19 columns of the GRDC crosswalk, one row per gauge. A gauge with no gauge downstream stores its own station_seq_id in next_down_station_seq_id, and upstream_station_count includes the gauge itself. Gauges 9,374 and 9,423 are gauges 1 and 50 of Figure 8.

Figure_09: PNG · PDF (0.2 MB)

Figure 10
Figure 10. SWORD v17c reaches and nodes of the Columbia River basin, placed on MERIT Hydro and numbered so that the reaches upstream of any reach, and the nodes upstream of any node, are one range. (a) The basin, SWORD reaches 226,283 to 227,349. Of its 48,117 SWORD nodes, 48,029 are placed; 85 of the 88 not placed are in Flathead Lake, just north of the box of (b), and show in light blue only. (b) The Clark Fork upstream of gauge 50 of Figure 8 (gray). Gauge 50 lies on SWORD reach 226,681; upstream of it lie reaches 226,682 to 226,713 and 61 nodes of reach 226,681, 1,436 nodes in all. The labeled dots are the most downstream nodes of reaches 226,682 (Clark Fork), 226,693 (Blackfoot River), and 226,708 (Bitterroot River), on each river the most downstream reach that lies wholly upstream of gauge 50. (c) SWORD reach 226,683 of the Clark Fork (72 nodes, 10,106,818 to 10,106,889) and its upstream confluence with the Blackfoot River. Each node, at its SWORD position, is joined to the channel pixel on which it is placed. Labels give sword_node_seq_id and, in parentheses, upstream_sword_node_count: the 972 nodes upstream of node 10,106,889, itself included, are [10,106,889, 10,107,861), namely itself, the 365 of the upper Clark Fork from 10,106,890, and the 606 of the Blackfoot River from 10,107,255.

Figure_10: PNG · PDF (1.6 MB)

Figure 11
Figure 11. All 240,111 SWORD v17c reaches with a placed node, numbered so that the reaches upstream of any reach, itself included, are one range (MERIT Hydro). (a) The unit catchment of each SWORD reach, the land that drains to it without passing another SWORD reach; colors only distinguish adjacent ones. Black lines bound the upstream catchment of each reach with no SWORD reach downstream, and gray land has no SWORD reach downstream (29.3% of the numbered land). Each label gives the numbers of such a reach and of the reaches upstream of it (Columbia, 226,283 to 227,349). (b) Selected rows and 7 of the 35 columns of the SWORD reach crosswalk (Table B1), one row per SWORD reach. Reach 226,283, the Columbia outlet, has no path (0) and is assigned basin 32 by the rule of Appendix B; reach 226,682 is the most downstream SWORD reach wholly upstream of gauge 50 (Figure 10b), and reach 226,683 is that of Figure 10c. (c) Selected rows and 6 of the 22 columns of the SWORD node crosswalk, one row per SWORD node; the 10,729,230 placed nodes are numbered 1 to 10,729,230. Node 10,089,242, the most downstream node of the Columbia, has the 48,029 placed nodes of the basin upstream of it, itself included; nodes 10,106,889 and 10,106,890 are those of Figure 10c. In both tables, a reach or node that is not placed (last row) has 0 as its new number.

Figure_11: PNG · PDF (0.4 MB)

Figure 12
Figure 12. The SWORD v17c nodes upstream of each GRDC gauge are found from the numbers alone, with no matching table between GRDC and SWORD (the Clark Fork upstream of gauge 50, as in Figures 8b and 10b): both crosswalks store pixel_seq_id, and the pixel table gives upstream_channel_pixel_count at the pixel_seq_id of the gauge. (a) Gauges 50 to 55, numbered as in Figure 8, and the 1,436 SWORD nodes placed upstream of gauge 50; the channels shown drain at least 100 km². (b) The channel pixels around gauge 53 (GRDC 4115340, Blackfoot River near Bonner). The channel pixels upstream of the gauge, its own included, are those with pixel_seq_id in [1,088,899,730, 1,088,947,798). The node on pixel 1,088,899,729, just downstream of the gauge, is outside this range; the node on pixel 1,088,899,732 is the first of the 545 inside it and is the node paired with the gauge (Section 5.3). (c) The range of gauge 50, [1,088,820,338, 1,089,010,146), as one axis. Each bar is the range of one gauge, [pixel_seq_id, pixel_seq_id + upstream_channel_pixel_count), and blue shows the pixels with a SWORD node; the nodes upstream of a gauge are those whose pixels fall in its bar (numbers at right). Several nodes may share a pixel: the 1,436 nodes of gauge 50 lie on 1,365 pixels. Gauges 52 and 55 lie upstream of the most upstream SWORD node on their rivers and have no node in their ranges.

Figure_12: PNG · PDF (0.3 MB)

Main text: tables

Table 1. What river network datasets and methods number, how they store the tree, and whether their networks at different thresholds share identifiers.

Dataset or methodCoverage; source data; channel threshold or basin levelsNumberedTree stored asThresholds linked
PixelReachUnit catchmentPathBasinAdjacency listPath enumerationNested set
National and regional datasets
NHDPlus V2 and HR (McKay et al., 2012; Moore et al., 2019)United States; V2: mainly 30 m DEM and medium-resolution mapped streams; HR: 10 m DEM and high-resolution mapped streams–✓✓✓✓✓(✓)–(✓)
WBD, Watershed Boundary Dataset (Jones et al., 2022)United States; hydrologic units HU2–HU12––––(✓)✓✓––
Geofabric V3 (Bureau of Meteorology, 2015)Australia; 1″ DEM–✓✓–(✓)✓––(✓)
BHO 2017 (Agência Nacional de Águas, 2017)Brazil; mapped hydrography; 5 km² in the 5k version–✓✓✓(✓)✓✓–(✓)
REC2 v2.5, River Environment Classification (National Institute of Water and Atmospheric Research, 2019)New Zealand; 30 m DEM–✓✓––✓–––
Global datasets
HydroSHEDS v1: HydroRIVERS and HydroBASINS (Lehner & Grill, 2013)Global; 15″; rivers ≥ 10 km² or ≥ 0.1 m³/s; basins at 12 levels–✓––✓✓✓––
HydroSHEDS v2 (Lehner, 2026; Lehner et al., 2022)North and South America; 1″; 1 km²–✓✓–✓✓–––
HDMA (Verdin, 2017)Global; 3″ (7.5″ north of 60°N, 30″ in Greenland); 250 km²–✓✓–(✓)–✓––
MERIT-Basins (Lin et al., 2019)Global; MERIT Hydro 3″; 25 km²–✓✓––✓(✓)––
Hydrography90m (Amatulli et al., 2022)Global; MERIT Hydro 3″; 0.05 km²–✓✓–✓✓–––
TDX-Hydro (National Geospatial-Intelligence Agency, 2023; Olsen et al., 2023)Global; TanDEM-X 12 m; about 5 km²–✓✓––✓–––
GRIT (Wortmann et al., 2025)Global without Greenland and Antarctica; FABDEM 30 m and a river mask; 50 km²–✓✓–(✓)✓–––
NWEI, Nested Watershed dataset considering Endorheic basins and Islands (Liu et al., 2025)Global; MERIT Hydro 3″; levels 1–12––––(✓)✓✓––
RiverLakeBasins (Liu et al., 2026)Global; NWEI and HydroLAKES; levels 1–12––––(✓)✓–––
SWORD v17c, SWOT River Database (Altenau et al., 2021; Gearon et al., 2026)Global; rivers ≥ 30 m wide; reaches about 10 km, nodes about 200 m–✓–✓(✓)✓(✓)––
Methods and tools
TauDEM StreamNet (Tarboton, 2026)Any DEM; user threshold–✓✓––✓–––
TOPAZ (Garbrecht & Martz, 1997; Martz & Garbrecht, 1992)Any DEM; critical source area and minimum source channel length–✓✓––✓–(✓)–
Demir and Szczepanek (2017)Iowa; 90 m DEM; 620,173 subwatersheds; three tree models compared–✓✓––✓✓✓–
Haag et al. (2018); Haag and Shokoufandeh (2019)Delaware River basin; every pixel of a 30 m flow-direction grid (2018); NHDPlus V2 reaches (2019)✓✓✓––✓–✓–
This study and its predecessor
FullBasin (Jiang et al., 2026c)Global; MERIT Hydro 3″; all land pixels✓–––✓––✓–
FlowNest (this study)Global; MERIT Hydro 3″; any threshold ≥ 1 km²✓✓✓✓✓✓–✓✓

Table_01: CSV

Table 2. The columns of the pixel table, the 1 km² reach table, and its location table. Every range of numbers is stored as its first number and a count; every window of the grid as its first row and column and one past its last.

ColumnMeaningRange or window
(a) Pixel table (flownest_merit90m_pixel_1km2.parquet): one row per channel pixel, in the order of pixel_seq_id
Which pixel, and where
pixel_seq_idthe number of the channel pixel
rowgrid row, 0 at the northern edge, 85°N
colgrid column, 0 at the western edge, 180°W
What it belongs to
reach_seq_idits reach at 1 km²
path_seq_idits path
basin_idits basin
What lies upstream of it
upstream_area_km2its drainage area, from MERIT Hydro
upstream_channel_pixel_counthow many channel pixels lie upstream of it, itself includedthe channel pixels upstream: [pixel_seq_id, pixel_seq_id + upstream_channel_pixel_count)
(b) Reach table (flownest_merit90m_reach_1km2.parquet): one row per reach, in the order of reach_seq_id
Which reach, and where in the tree
reach_seq_idthe number of the reach
upstream_reach_counthow many reaches lie upstream of it, itself includedthe reaches upstream: [reach_seq_id, reach_seq_id + upstream_reach_count)
next_down_reach_seq_idthe reach it flows into; at a basin outlet, the reach itself
path_seq_idits path, which begins at a source and runs down to a channel with a larger drainage area or to the basin outlet
path_level1 on the path that reaches the basin outlet; otherwise 1 plus the level of the path it flows into
basin_idits basin
Its channel pixels
downstream_end_pixel_seq_idits most downstream channel pixel; a coarser reach ends at the same pixel as the most downstream 1 km² reach in it
channel_pixel_counthow many channel pixels it hasits channel pixels, from the most downstream to the most upstream: [downstream_end_pixel_seq_id, downstream_end_pixel_seq_id + channel_pixel_count)
upstream_channel_pixel_counthow many channel pixels lie upstream of its most downstream pixel, that pixel includedthe channel pixels upstream: [downstream_end_pixel_seq_id, downstream_end_pixel_seq_id + upstream_channel_pixel_count)
Coarser thresholds
break_threshold_km2the largest threshold at which a reach still ends at its most downstream pixel: at a confluence, the smaller of its own drainage area and that of the largest other branch; at a basin outlet, its own drainage area
Attributes
upstream_area_km2drainage area at its most downstream pixel
unit_catchment_area_km2area of its unit catchment, its channel pixels included
length_kmchannel length between pixel centers, from its most upstream pixel to the pixel it flows into (the most upstream pixel of the next reach downstream); at a basin outlet, to its most downstream pixel
distance_to_basin_outlet_kmchannel distance to the basin outlet from the pixel it flows into, the sum of length_km over the reaches downstream; 0 for the reach at the basin outlet
(c) Location table (flownest_merit90m_reach_location_1km2.parquet): one row per reach, in the row order of the reach table
reach_seq_idthe number of the reach
downstream_end_lon, downstream_end_latcenter of its most downstream pixel (°)
unit_catchment_row_min, unit_catchment_row_max, unit_catchment_col_min, unit_catchment_col_maxthe smallest window of the grid that holds its unit catchmentrows [unit_catchment_row_min, unit_catchment_row_max) and columns [unit_catchment_col_min, unit_catchment_col_max)
upstream_catchment_row_min, upstream_catchment_row_max, upstream_catchment_col_min, upstream_catchment_col_maxthe smallest window of the grid that holds its upstream catchmentrows [upstream_catchment_row_min, upstream_catchment_row_max) and columns [upstream_catchment_col_min, upstream_catchment_col_max)

Table_02: CSV

Table 3. The files of the global FlowNest release on MERIT Hydro: what each file holds, its format, and its size. Figure 6 shows how they are used together.

ObjectFormatFileColumns or contentRows or pixelsSize
Navigation: from a basin of 1 km² or more to its pixels and reaches
BasinTableflownest_merit90m_basin.parquetthe FullBasin basin ID (basin_id); FullBasin Level-1 to Level-3 group codes (flowdivide_level1_id to flowdivide_level3_id); the range of its channel pixels (outlet_pixel_seq_id, channel_pixel_count) and of its 1 km² reaches (first_reach_seq_id_1km2, reach_count_1km2), each as start and count; drainage area, outlet coordinates, whether it drains to an inland sink, and its window of the grid340,99113.9 MB
BasinVector, polygonsflownest_merit90m_basin.geo.parquetbasin_id; the basin as a polygon along the pixel edges, with its bounding box340,9910.42 GB
Land pixelRasterflownest_merit90m_basin_id.tifthe FullBasin basin ID on every pixel of the basins of 1 km² or more174,000 × 432,0000.34 GB
Pixel level: every channel pixel, used at every threshold
Channel pixelTableflownest_merit90m_pixel_1km2.parquetthe 8 columns of Table 2a: number, grid row and column, reach, path, basin, drainage area, and the count of channel pixels upstream1,223,005,2429.74 GB
Land pixelRasterflownest_merit90m_pixel_seq_id_1km2.tifpixel_seq_id on a channel pixel; minus that number on the hillslope pixels that drain first to it174,000 × 432,00018.06 GB
Reach level: the reaches at 1 km², from which the reaches at any coarser threshold are read (Table 4)
ReachTableflownest_merit90m_reach_1km2.parquetthe 14 columns of Table 2b: number, tree, channel pixels, break threshold, and attributes70,883,935 (68,655,012 in the basins of 1 km² or more, 2,228,923 in the small basins)2.43 GB
ReachTable, locationflownest_merit90m_reach_location_1km2.parquetthe 11 columns of Table 2c: coordinates of the downstream end; windows of the unit catchment and of the upstream catchment70,883,9351.33 GB
ReachVector, linesflownest_merit90m_reach_line_1km2.geo.parquetreach_seq_id; the channel of the reach as a line through its pixel centers to the pixel it flows into, with its bounding box; empty for the 2,244,282 reaches that are only a basin outlet pixel70,883,9353.89 GB
Unit catchmentVector, polygonsflownest_merit90m_unit_catchment_1km2.geo.parquetreach_seq_id; the unit catchment of the reach as a polygon along the pixel edges, with its bounding box70,883,93517.51 GB
Land pixelRasterflownest_merit90m_reach_seq_id_1km2.tifreach_seq_id on the channel pixels of a reach; minus that number on the hillslope pixels that drain first to them174,000 × 432,0009.33 GB

Table_03: CSV

Table 4. The number and size of the reaches and paths of the global network at five thresholds (MERIT Hydro), all read from the 1 km² reach and pixel tables.

Threshold A (km²)ReachesReach length (km) median (10th–90th)Unit catchment area (km²) median (10th–90th)PathsPath length (km) median (10th–90th)Deepest path levelChannel length (million km)Rows of the 1 km² reach table kept
168,655,0121.25 (0.301–3.55)1.55 (0.308–3.92)34,708,3741.41 (0.274–6.95)12117.7100%
514,350,0272.91 (0.662–8.35)7.51 (1.30–18.7)7,259,3093.31 (0.622–16.2)1156.848.0%
252,944,8846.81 (1.49–19.8)36.8 (5.68–90.7)1,502,3297.87 (1.45–38.2)1027.424.3%
100736,75014.1 (2.92–41.9)146 (21.1–359)382,01216.3 (2.89–80.7)914.313.2%
1,00070,17047.2 (8.45–144)1,470 (200–3,560)38,58155.2 (8.63–269)74.64.4%

Table_04: CSV

Appendix A: figures

Figure A1
Figure A1. How NHDPlus V2 identifies the river network where the Little Blackfoot River joins the Clark Fork at Garrison, Montana (USA). (a) The region, the Clark Fork basin upstream of gauge 50 (Figures 8b, 10b, and 12), with the Clark Fork (main stem) in blue and the Little Blackfoot River with its tributaries in orange; and a window of 3.2 km × 4.8 km on the junction (the same in Figures A2a–A4a), with the COMID and the unit catchment of each of the three flowlines that meet there. (b) Four questions about the tributary flowline (rows: up- and downstream, which river, which land, which point) against the numberings of the dataset (columns). A gray entry answers the question, with the field in bold; a dash means that the numbering does not answer it. TOCOMID is the COMID of the flowline downstream; DNHYDROSEQ and UPHYDROSEQ hold the HYDROSEQ of the flowlines downstream and upstream on the main path; LEVELPATHI is shared by every flowline of a river; FEATUREID, the identifier of a unit catchment, equals the COMID of its flowline; REACHCODE with a measure addresses a point, and FROMMEAS and TOMEAS give the measures at the two ends of a flowline. (c) The 10,026 flowlines of the region sorted by COMID and by HYDROSEQ, and its 8,923 reach codes sorted by REACHCODE, colored as in (a). A set can be selected by two numbers only if its color forms one block; the columns at right count the blocks. Arcs join each flowline of the two colored sets to the flowline it flows to, and crossing arcs mean that the numbers jump between branches; REACHCODE stores no downstream code, so its strip has no arcs.

Figure_A1: PNG · PDF (0.7 MB)

Figure A2
Figure A2. As Figure A1, for HydroSHEDS v1: HYRIV_ID identifies a reach of HydroRIVERS, HYBAS_ID a sub-basin of HydroBASINS, and PFAF_ID is the Pfafstetter code of a sub-basin, one digit per level. (a) The HYRIV_ID of the three reaches at the junction and, shaded, the Level-12 sub-basin each lies in. (b) ORD_CLAS, the classical river order, shows which branch continues at a confluence, but all rivers of an order share its value, so it does not identify a river. PFAF_ID gives the tributary basin a reach lies in, but not the river it is on: the tributary reach lies in sub-basin 782669601000, inside tributary basin 7826696 (an even seventh digit marks a tributary basin), that of the Little Blackfoot River, and so does every reach of its tributaries. (c) The 1,174 reaches of the region sorted by HYRIV_ID, and its 179 Level-12 sub-basins sorted by PFAF_ID; arcs join each reach or sub-basin to the next one downstream (NEXT_DOWN). The 9 sub-basins of the Little Blackfoot all begin with 7826696 and form one block; the main stem forms 18 blocks, because at every level the tributary basins are numbered between the parts of the main stem. HYRIV_ID arcs cross; PFAF_ID arcs only nest.

Figure_A2: PNG · PDF (0.3 MB)

Figure A3
Figure A3. As Figure A1, for TDX-Hydro with the nested set index of Haag and Shokoufandeh (2019) that Model My Watershed adds to it. LINKNO numbers a link, the reach of TDX-Hydro (shown with the regional offset that Model My Watershed adds to make it unique worldwide). (a) The links at the junction with their LINKNO; unit-catchment polygons are not drawn. (b) A link stores the next link downstream (DSLINKNO) and the two links that meet at its upstream end (USLINKNO1 and USLINKNO2). DISCOVER_TIME is the time at which a depth-first search from the outlet link of a tree (ROOT_ID) reaches a link; a link and the links upstream of it are those of the same ROOT_ID whose discovery time t satisfies DISCOVER_TIME ≤ t < FINISH_TIME. (c) The 2,807 links of the region sorted by LINKNO and by DISCOVER_TIME; in the tree of the Columbia they are one range of DISCOVER_TIME, [60,879, 63,686). The search enters USLINKNO2 first at every confluence, which on the main stem is usually the tributary, so the main stem breaks into 124 blocks; the Little Blackfoot, like the links upstream of any link, is one range, [62,913, 63,050). LINKNO arcs cross; DISCOVER_TIME arcs only nest, as in any depth-first numbering.

Figure_A3: PNG · PDF (0.3 MB)

Figure A4
Figure A4. As Figure A1, for the reaches of FlowNest on MERIT Hydro (base threshold 1 km²). reach_seq_id numbers the reaches depth first from the basin outlet, the branch with the larger drainage area first; the numbers are those of the global release. (a) Left, the region with the window as a rectangle; right, the window pixel by pixel. Channel pixels are dark (main stem blue, the Little Blackfoot River with its tributaries orange, other rivers gray) and hillslope pixels light; the unit catchments of the three reaches at the junction are shaded, and labels give their reach_seq_id. (b) A reach stores the reach downstream (next_down_reach_seq_id); the number of reaches upstream of it, itself included (upstream_reach_count, here 512), which are consecutive numbers from its own; its path (path_seq_id, here the Little Blackfoot River); and its most downstream channel pixel (downstream_end_pixel_seq_id) with its number of channel pixels (channel_pixel_count), which are consecutive in pixel_seq_id. The unit-catchment polygons and the reach raster carry reach_seq_id. (c) The 11,285 reaches of the region sorted by reach_seq_id. Within a path each reach, except the first, flows to the reach numbered one less, which gives the short arcs; longer arcs appear only where one path joins another, and they only nest. One block for each set follows from how the numbers are made; it is not a measure of hydrological accuracy.

Figure_A4: PNG · PDF (0.5 MB)

Appendices A and B: tables

Table A1. What FlowNest and 10 other river network datasets call the objects of Figures 1 and 3, and the fields that hold them.

DatasetBasinPathReachNext reach downstreamUnit catchmentDrainage area
FlowNestbasin_idpath_seq_idreach_seq_idnext_down_reach_seq_idpolygon and raster by reach_seq_id; unit_catchment_area_km2upstream_area_km2
NHDPlus V2TerminalPaLevel path (LevelPathI)Flowline (COMID)TOCOMID (in PlusFlow); DnHydroseq (a Hydroseq, not a COMID); FromNode and ToNodeCatchment (FEATUREID); AreaSqKMTotDASqKM
Geofabric V3– (drainage divisions and river regions as reporting units)–Stream segment (HydroID)NextDownIDCatchment (HydroID, joined to the stream by DrainID); AlbersAreaUpstrDArea
BHO 2017Otto-coded basin (the first digits of cobacia)Watercourse (cocursodag)Segment (cotrecho)nutrjusContributing area of the segment (cobacia); nuareacontnuareamont
REC2 v2.5––Segment (nzsegment)NextDownID; FROM_NODE and TO_NODEWatershed (nzsegment); CATAREACUM_AREA
HydroSHEDS v1MAIN_RIV in HydroRIVERS; MAIN_BAS in HydroBASINS– (river order, ORD_CLAS)Reach (HYRIV_ID)NEXT_DOWN– (area only, CATCH_SKM; polygons by Level-12 sub-basin, HYBAS_L12)UPLAND_SKM
HydroSHEDS v2MAIN_BAS–Stream (STRM_ID)STRM_DNSub-basin polygon (HYBAS_ID, equal to STRM_ID where possible; beta version)UPLAND_SKM
MERIT-Basins––Reach (COMID)NextDownIDUnit catchment (COMID); unitareauparea
Hydrography90mDrainage basin (ID on the basin raster and polygons)–Stream segment (ID on the segment raster and lines)next_streamSub-catchment (the ID of its segment; raster and polygons)Flow accumulation raster (km²)
TDX-Hydro– (files by HydroBASINS Level-2 region)–Link (LINKNO)DSLINKNOCatchment (streamID)DSContArea
SWORD v17cConnected network (subnetwork_id)Main path (main_path_id)Reach (reach_id), about 10 km, with nodes about 200 m apart (node_id)rch_id_dn_main–facc

Table_A1: CSV

Table B1. The files that place the GRDC gauges and the SWORD v17c reaches and nodes on FlowNest (MERIT Hydro, 1 km² threshold), and the reach files at 5 and 25 km². GRDC, Global Runoff Data Centre; SWORD, SWOT River Database.

ObjectFormatFileColumns or contentRows or pixelsSize
GRDC gauges (10,241; GRDC, 2022), placed on channel pixels
GRDC gaugeTable…grdc_burek2023.parquetthe gauge (station_seq_id, grdc_station_id) and its number within its basin (basin_station_seq_id); the gauges upstream and the next one downstream (upstream_station_count, next_down_station_seq_id); where it is on FlowNest (pixel_seq_id, reach_seq_id_1km2, path_seq_id_1km2, basin_id); its position in Burek and Smilovic (2023) and as placed; its drainage area on FlowNest and as reported10,2410.7 MB
GRDC gaugeTable, location…grdc_burek2023_location.parquetstation_seq_id; the center of its pixel; the windows of its unit catchment and of its upstream catchment10,2410.4 MB
GRDC gaugeVector, points…grdc_burek2023_point.geo.parquetstation_seq_id; the gauge at the center of its pixel10,2410.4 MB
Unit catchment of a gaugeVector, polygons…grdc_burek2023_unit_catchment.geo.parquetstation_seq_id; the land that drains to the gauge without passing another gauge10,241148 MB
Land pixelRaster…grdc_burek2023_station_seq_id.tifon every channel pixel, the station_seq_id of the first gauge at or downstream of it, 0 if there is none; minus that value on the hillslope pixels that drain first to it, as in Table 3174,000 × 432,0001.49 GB
GRDC gauge and SWORD nodeTable…grdc_burek2023_sword_v17c_node_pair.parquetstation_seq_id and its candidate SWORD node, the one of at most two whose drainage area is closer to that of the gauge as a ratio: which candidate it is (pair_side: down, up, or none if there is no candidate), whether it is on the gauge’s own pixel (pair_on_gauge_pixel), its pixel, node, and reach numbers, the ratio of the two drainage areas, and whether they agree within 10% (pair_within_10pct), which makes them a pair10,2410.4 MB
SWORD v17c reaches, placed on FlowNest
SWORD reachTable…sword_v17c_reach.parquetthe reach (sword_reach_id, sword_reach_seq_id); SWORD’s reach type and lake and side-channel flags (sword_type, sword_lakeflag, sword_main_side); the reaches upstream (upstream_sword_reach_count); where it is on FlowNest: its most downstream pixel (most_downstream_pixel_seq_id, the smallest pixel_seq_id of its placed nodes), its path or two paths (path_seq_id_1km2, path2_seq_id_1km2), and basin_id; how it was matched (matched_at_step) and the fraction of its length that follows its path or paths (cover; the fraction of its nodes for the 38 reaches matched through nodes continued from a neighbor, Appendix B); how far the match can be trusted and why (match_confidence, confidence_reason)248,673, all reaches12.4 MB
SWORD reachTable, location…sword_v17c_reach_location.parquetsword_reach_seq_id; the center of its most downstream pixel; the windows of its unit catchment and of its upstream catchment240,111, placed6.5 MB
SWORD reachVector, lines…sword_v17c_reach_line.geo.parquetsword_reach_seq_id; the reach as a line through the pixels of its placed nodes240,111, placed51.7 MB
Unit catchment of a SWORD reachVector, polygons…sword_v17c_reach_unit_catchment.geo.parquetsword_reach_seq_id; the land that drains to the reach without passing another SWORD reach240,111, placed696 MB
Land pixelRaster…sword_v17c_reach_seq_id.tifon every channel pixel, the sword_reach_seq_id of the first SWORD reach at or downstream of it, 0 if there is none; minus that value on the hillslope pixels that drain first to it, as in Table 3174,000 × 432,0002.17 GB
SWORD v17c nodes, placed on channel pixels
SWORD nodeTable…sword_v17c_node.parquetthe node (sword_node_id, sword_node_seq_id) and its reach (sword_reach_id); SWORD’s lake and side-channel flags (sword_lakeflag, sword_main_side); the nodes upstream (upstream_sword_node_count); where it is on FlowNest (pixel_seq_id, reach_seq_id_1km2, path_seq_id_1km2); its position in SWORD and as placed; its drainage area on FlowNest; how far its placement can be trusted and why (match_confidence, confidence_reason)11,112,454, all nodes419 MB
SWORD nodeVector, points…sword_v17c_node_point.geo.parquetsword_node_seq_id; the node at the center of its pixel10,729,230, placed142 MB
Land pixelRaster…sword_v17c_node_seq_id.tifon every channel pixel, the sword_node_seq_id of the first SWORD node at or downstream of it, 0 if there is none; minus that value on the hillslope pixels that drain first to it, as in Table 3174,000 × 432,0002.64 GB
SWORD v17c connected networks and the FlowNest basins that hold them
SWORD connected networkTable…sword_v17c_subnetwork.parquetsword_subnetwork_id; the FlowNest basin or basins that hold it, 0 for the three that lie in the sea beyond the MERIT Hydro coastline (Appendix B)3,0270.1 MB
Reaches at 5 and 25 km², read from the 1 km² reach table of Table 3
ReachTable…reach_5km2.parquet; …reach_25km2.parquetthe 14 columns of Table 2b except break_threshold_km2, at this threshold; the 1 km² reaches along its channel, as start and count (downstream_end_reach_seq_id_1km2, stem_reach_count_1km2)14,350,027; 2,944,884495 MB; 106 MB
ReachTable, location…reach_location_5km2.parquet; …reach_location_25km2.parquetthe 11 columns of Table 2c14,350,027; 2,944,884290 MB; 71.4 MB
ReachVector, lines…reach_line_5km2.geo.parquet; …reach_line_25km2.geo.parquetreach_seq_id; the channel of the reach as a line, as in Table 3; empty for the 8,252 and 5,371 reaches that are only a basin outlet pixel14,350,027; 2,944,8841.68 GB; 0.79 GB
1 km² reachTable…crosswalk_reach_1km2_to_coarser.parquetreach_seq_id_1km2; the reaches at 5 and 25 km² whose unit catchments contain it (reach_seq_id_5km2, reach_seq_id_25km2), 0 where its basin has no network at that threshold70,883,935188 MB

Table_B1: CSV