FlowNest paper (Water Resources Research): figures and tables of the manuscript
===============================================================================

FlowNest: A Unified Coding System for Position on Global River Networks
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.

index.html          the 16 figures and 6 tables with their captions, as one web page
Figures/            Figure_01 to Figure_12 and Figure_A1 to Figure_A4, each as PNG and PDF;
                    the PNGs are 300 dpi, those of Figures 3 and 4 600 dpi
Tables/             Table_01 to Table_04, Table_A1 and Table_B1 as CSV (UTF-8); a group row
                    has its text in the first column and the others empty, and the columns
                    of Table 1 under "Numbered" and "Tree stored as" are named with that head
scripts/            the Python scripts that compute the numbers of the paper (DataNN_*.py)
                    and draw the figures (FigNN_*.py); MIT, as FlowNest
run_all.sh          runs every script in order (about 70 minutes)
environment.yml     a conda environment for the scripts, with FlowNest 1.0.0
README_scripts.md   how to run the scripts: requirements, inputs, steps, and the numbers
                    of the paper that are not computed from the inputs
Data/               what the DataNN scripts wrote in the run that made these figures, read
                    by the FigNN scripts
input/              the two tables of river-name classes of the gauge - node pairs
                    (README_scripts.md, Numbers that are not computed from the inputs)
flownest-figure-data.zip   Data/ and input/ together (80.6 MB)
SHA256SUMS.txt      SHA-256 checksums of all other files

Code      the FlowNest Python package, version 1.0.0, MIT
          https://github.com/hellolulujiang/flownest
Data      FullNest, the FlowNest release on MERIT Hydro, 20261113_195421
          https://doi.org/10.5281/zenodo.24393217 and https://doi.org/10.5281/zenodo.24393244
Licence   Figures and Data/: CC BY-NC 4.0 or ODbL 1.0, your choice, as FullNest on MERIT
          Hydro: they are drawn from MERIT Hydro and the release; Figures 8 to 12 also show
          GRDC station locations (Burek and Smilovic, 2022) and SWORD v17c, CC BY 4.0, and
          Figures A1 to A3 NHDPlus V2, HydroSHEDS v1 and TDX-Hydro, each under its own terms,
          as do the parts of Data/ cut from them.  Scripts: MIT; scripts/_vendor_mmw/mnsi.py
          is from WikiWatershed/global-hydrography, MIT (its LICENSE is beside it).

Figures and the scripts that draw them
--------------------------------------
  Figure_01  Fig01_terms_toy_basin.py
  Figure_02  Fig02_four_tree_models_toy_basin.py
  Figure_03  Fig03_pixel_numbers_toy_basin.py
  Figure_04  Fig04_coarser_threshold_toy_basin.py
  Figure_05  Fig05_objects_chain_littleblackfoot.py
  Figure_06  Fig06_how_to_use_the_files_littleblackfoot.py
  Figure_07  Fig07_subbasins_three_thresholds_littleblackfoot.py
  Figure_08  Fig08_columbia_gauges_nested_by_number.py
  Figure_09  Fig09_global_gauges_and_crosswalk_table.py
  Figure_10  Fig10_columbia_sword_reaches_and_nodes_by_number.py
  Figure_11  Fig11_global_sword_reaches_and_crosswalk_table.py
  Figure_12  Fig12_clarkfork_gauges_and_sword_on_one_number_axis.py
  Figure_A1  FigA1toA4_variables_clarkfork.py
  Figure_A2  FigA1toA4_variables_clarkfork.py
  Figure_A3  FigA1toA4_variables_clarkfork.py
  Figure_A4  FigA1toA4_variables_clarkfork.py

Figures 1 to 4 also use toy_basin_numbering.py, toy_basin_reach_colors.py and
toy_basin_style.py, Figure 5 Fig05_common_littleblackfoot.py, Figures A1 to A4
FigA_common_clarkfork.py and FigA_loaders_clarkfork.py, and most scripts paths.py.

To redraw a figure
------------------
1. Install FlowNest 1.0.0 and the packages of environment.yml, e.g.
   conda env create -f environment.yml
2. Put Data/ and input/ next to scripts/, as here (or unzip flownest-figure-data.zip
   there).
3. Run the script from scripts/, e.g.  python Fig08_columbia_gauges_nested_by_number.py
Figures 1 to 4 need no input, and Figures 8 and A1 to A4 only Data/.  Figures 5 to 7 and
9 to 12 also read FullNest itself, and Figures 10 and 12 SWORD v17c: set
FLOWNEST_RELEASE_ROOT and SWORD_GPKG_DIR (README_scripts.md, Inputs).  Drawn this way from
this folder on 2026-11-22, all 16 figures came out pixel for pixel as the Figure_NN files.
The scripts write into Figures/ under their own names (Fig08_..._v1.png and so on), so they
leave the Figure_NN files given here untouched; Figures 5 to 7 go to Drafts/ unless --final
is given.  To compute Data/ again from the inputs, run run_all.sh.
