-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9030c9
commit 7c61b40
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# fix-streams | ||
<h1>R script to fix multiple confluences in stream networks</h1> | ||
<p>All nodes which have >2 streams flowing to it are corrected. The outermost streams' end vertices are adjusted by "step" meters along the downgoing stream. New nodes are created at suitable places, and existing lines suitably split.</p> | ||
<p>Requires a line shapefile with the proper FROM_NODE and TO_NODE fields. The file is assumed to be correct in all other aspects, there is no error checking.</p> | ||
<h2>USAGE EXAMPLE</h2> | ||
<p>Requires a line shapefile with the proper FROM_NODE and TO_NODE fields. The file is assumed to be correct in all other aspects, <em>there is no error checking</em>.</p> | ||
<h2>Usage example</h2> | ||
<code>streams=readOGR("streams_Pt.shp","streams_Pt")</code><br/> | ||
<code>correctedshp=fix.streams(streams,step=10)</code><br/> | ||
<code>writeOGR(correctedshp,"streams_corrected.shp","streams_corrected","ESRI Shapefile")</code> |