Skip to content
hellolulujiangPublic

About

Sixteen shape and terrain attributes of every pixel's upstream catchment on a D8 flow-direction grid: elevation and slope statistics, perimeter, length, width, convexity and shape indices.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

FlowMorph

FlowMorph computes sixteen terrain and shape attributes of the catchment upstream of every pixel with at least 10 km² of drainage area on a D8 flow-direction grid.

Shape attributes

Drainage area (a) and the eight shape attributes (b–i) along the river network of the FullBasin paper's example basin (Nanxi River, Fujian, China; 729 km²). Figure 9 of the FullBasin paper.

Install

git clone https://github.com/hellolulujiang/flowmorph.git
cd flowmorph
pip install -e .

Python 3.10 or later.

Use

import flowmorph

fm = flowmorph.FlowMorph.from_raster(
    "data/dir_example.tif", "data/upa_example.tif", "data/elv_example.tif")
attributes = fm.attributes()
fm.write("out")

Outputs contain local slope and the sixteen attributes; pixels with less than 10 km² upstream contain -9999.

Terrain attributes

Elevation (a) and the eight terrain attributes (b–i) on the same basin. Figure 8 of the FullBasin paper.

How the perimeter is traced

One boundary is grown from each catchment to the next one downstream, so only the new pixels are examined.

Boundary walk

Figure 7 of the FullBasin paper.

Documentation

User guide: input grids, command line, all sixteen definitions, methods and tests.

Data products

FullMorph v1.1 provides the sixteen attributes across MERIT Hydro. FullDivide regions · FullHydro tools

Citing

Cite the FullBasin paper (Jiang et al., under review at Earth System Science Data) and this repository with the release used.

Licence

MIT; see LICENSE. The bundled MERIT Hydro and MERIT DEM excerpt and the three figures keep their own terms; see DATA_NOTICE.md.

About

Sixteen shape and terrain attributes of every pixel's upstream catchment on a D8 flow-direction grid: elevation and slope statistics, perimeter, length, width, convexity and shape indices.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages