| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Stream Normal Coordinate Transformation Compatibility: Python 3.10
This code is based on an academic research article:
Legleiter CJ, Kyriakidis PC. 2006. Forward and Inverse Transformation between Cartesian and Channel-fitted Coordinate Systems for Meandering Rivers. Mathematical Geology 38 : 927–958. DOI: 10.1007/s11004-006-9056-6
- The original source code from this article was in Matlab (acquired by Dietrich from Carl Legleiter, cjl@usgs.gov). This code is a translation of that original Matlab code with some added features/tweaks.
Given a digitized stream centerline and a set of input x,y coordinates. This software will transform the input x,y coordinates into a curvalinear coordinate system based on the stream centerline. This stream normal coordinate system is:
The reverse transofrmation is also possible.
In the demo folder there are two(2) notebook files that show examples of the code in action.
The inputs to the fuctions are arrays of points or pandas dataframes
X,Y points describing the centerline
a spatially variable search radii can be added by adding extra columns to the input centerline data and used in the fuctions
- downstream variable radii, but symmetric - 1-D Array
- downstream variable, but non-symmetric - 2-D Array
- Column 1 = left bank, Column 2 = right bank)
X,Y data points to be transformed
Ensure you have the following packages installed:
The transformation parameters are important, but require some trial and error. A lot will depend on what your initial point spacing is on your centerline and how tight your meander bends are.
Colors are based onthe Y-coordinates of the points
Colors are based onthe Downstream-coordinates of the points
| Back | FazBrowse Home | New Git URL |