Codes from "A universal approach for drainage basins".
fbm2d.sh - Compile and run the FORTRAN code. If necessary, edit the input parameters.
fbm2d.f90 - FORTRAN code for fBm landscape.
How should you run the code?
./fbm2d.sh
lx ly
i j h_ij
.
.
.
(See fbm2d_l0032_h0.7_s1231.dat)
watershed_FBC.sh - Compile and run the codes. If necessary, edit the input parameters.
watershed_FBC.c - C code for IPBA with FBC.
plot.py - Python code for ploting.
How should you run the code?
./watershed_FBC.sh
lx ly lon lat delta R
i j h_ij
.
.
.
(See GEBCO_2014_2D_90N_90S_f8.dat)
watershed_PBC.sh - Compile and run the codes. If necessary, edit the input parameters.
watershed_PBC.c - C code for IPBA with PBC.
plot.py - Python code for ploting.
How should you run the code?
./watershed_PBC.sh
The watershed lines are easily obtained from the "sigma_*.dat" files.