Closed philipbaileynar closed 3 years ago
This is a good exercise... we need to discuss what is coming in from VBET though and/or a user provided segmentation assessment polygon.
In meantime, I think before we do this we should review: Notebaert, Bastiaan, and Herve Piegay. “Multi-Scale Factors Controlling the Pattern of Floodplain Width at a Network Scale: The Case of the Rhone Basin, France.” Geomorphology 200 (October 15, 2013): 155–71. https://doi.org/10.1016/j.geomorph.2013.03.014.
This method is what @KellyMWhitehead emulated in an ealier ArcPy version of GNAT and is what is in the latest versions (Q) of Fluvial Corridor Toolbox.
@joewheaton and @philipbaileynar
Just let you know I just stumped out the basics of this and it's really just a call to an existing processing tool and adding some attributes. Basics of my script being developed in this repo.
https://github.com/nick4rivers/Q-integrated-width
I'll add in some of the error capture considerations @philipbaileynar mentions above and follow up.
I think for the purposes of this script, it can assume that the segmented is already complete. Let's keep this script with a single responsibility of calculating integrated width. A separate piece of code will wrestle with segmentation.
@philipbaileynar - you mean don't even segment the line by the valley bottom segments (sausages)? Just stick with the calculation and handling errors/edge cases?
and thanks for the article!
You will need to "intersect" the centerline with each polygon in the valley bottom featureclass.
Assume the centerline is one or more long lines spanning multiple valley bottom segments. And assume that the valley bottom segments have already been segmented correctly.
Thanks Philip, yup - that's what it's doing. Thanks @philipbaileynar
@philipbaileynar - I'm going to close this one, see this repo for the approach: https://github.com/nick4rivers/Q-integrated-width.
Good learning exercise - and I did go through a handful of the exceptions you specified. However, some of them should be addressed within the context of a riverscapes studio plugin. Also, I don't have the entire script in a function because the QGIS python interpreter has a problem with spaces in code blocks. Pretty crazy for a program built on Python.
The script just segments up a centerline, calculates lengths, areas, and an integrated width.
The task is to write an integrated width calculation script:
Pseudo Code
IWidth
attribute to the polygon feature class (what if it exists already?)Questions
IWidth
field already exists on the polygon feature class?Resource