Usage
Source Code
Source code archive
The source code of FLOW method is distributed in tar archive. When you unfold the tar archive, you can find following directories:
Library setup
Make in $FLOW/lib
For the first step, source code in library should compiled. In 'lib/' directory, please modify 'Makefile' according to the environment of your computer system. Then, just type:
% make all
'$FLOW' is your FLOW directory.
Upscaling
Make in $FLOW/1deg/src and execute scripts
A coarse-resolution river network map and its sub-grid topographic parameters are delineated in this step. Go to '1deg/src/' directory and modify 'Makefile' according to the environment of your computer system. Then, you should type:
% make all
% chmod 755 upscale.sh
% ./upscale.sh
% chmod 755 set_station.sh
% ./set_station.sh
'$FLOW' is your FLOW directory.
Temporary file for each continents are stored in '1deg/data/' directory, and final output is stored in '1deg/map/' directory.
Illustration
Illustration using GMT
The upscaled river network map can be illustrated using GMT (the Generic Mapping Tools). For this purpose, go to '1deg/gmt/', and you can find script for drawing figures. Go to '1deg/gmt/bin/' directory and edit 'Makefile' according to the environment of your computer system.
draw-fd.sh
You can draw the river network map by 'draw-fd.sh' script. Please modify the size of the output map by editing the numbers in 'draw-fd.sh' if needed, and then:
% make all
% cd $FLOW/1deg/gmt/
% chmod 755 draw-fd.sh
% ./draw-fd.sh $LON $LAT $PSFILE
'$FLOW' is your FLOW directory. Please input longitude (east-edge), latitude (north-edge), and output file name as an arguments for './draw-fd $LON $LAT $PSFILE' respectively.
You can choose whether GDBD 1-km rivers are drawn or not. You can also decide the way of illustrating river network map; (left) connecting outlet pixels of each grid-box, or (right) connecting center of each grid-box.
Illustration by 'draw-fd.sh'
draw-catchment.sh
If you want to draw catchment elements, please use 'draw-catchment.sh' script. Please modify the size of the output map by editing the numbers in 'draw-fd.sh' if needed. You should choose the area (continent) you are going to draw.
% chmod 755 draw-fd.sh
% ./draw-catchment.sh $LON $LAT $PSFILE
'$FLOW' is your FLOW directory. Please input longitude (east-edge), latitude (north-edge), and output file name as an arguments for './draw-fd $LON $LAT $PSFILE' respectively.
Illustration by 'draw-fd.sh'