320 likes | 424 Views
Srikanth koka Department of Civil Engineering Texas A&M University College Station. UpStream Trace of a Line in a Stream Network. Mississippi River System. Introduction. What is the project about? What is the essence of the project?
E N D
Srikanth koka Department of Civil Engineering Texas A&M University College Station. UpStream Trace of a Line in a Stream Network Mississippi River System
Introduction • What is the project about? • What is the essence of the project? • For what type of datasets does this tool apply to? • Programming language Used – Visual Basic
Maximum number of times each node can appear in the FromNode list is 1. Example of Dentritic Network 1 2 3 4 5 6 7 9 8 10 11
Datasets used • Line Dataset for stream line network. • Polygon Dataset for the watershed polygons. • The area of study is Mississippi river system.
Attributes of Line Data set • LineID • Shape Length • From Node • To Node • Water Shed ID • Weight
Table-1 • Stream Line Network Attribute Table
Attributes of WaterShed Polygon Data set • WaterShed ID • Area • Weight
Table-2 • WaterShed Polygon Attribute table
The way tool works as of now Attribute Tables Input Files(.csv) Export
Order UpStream Length Weighted UpStream length DownStream Length Weighted DownStream Length 6. DSLine Outlet ({0,1}) Accumulated Area Weighted Accumulated Area New fields added to Stream Network file
New fields added to watershed file • Outlet (LineID) • Accumulated Area • Weighted Accumulated Area
The way tool works as of now OutputFiles Attribute Tables Join New Attribute tables
DownStream Line • DSLine(i) is an array element that stores the Down Stream line of line i. • DSLine(i)=j if ToNode(i)=FromNode(j) • For outlet of the watershed DSLine(i)=0
UpStream Line • USLine(i) is a Collection defined for each line, that stores the Upstream lines of line i. • USLine(i)= j; FromNode(i)=ToNode(j) • USLine(i)= j ;if DSLine(j)=i
DownStream Flow Length • DSLength(i) =O ; if DSLine(i)=Nil =Length(DSLine(i))+DSLength(DSLine(i)) ; otherwise
Outlet • Defined as the stream line that is the most downstream in a watershed. • Each line is assigned a value of 1 or 0 based on whether the stream line is outlet or not. • Outlet(i) = 1 if WaterShed(i)<>WaterShed(DSLine(i)) =0 ; otherwise
DownStream WaterShed • Each line is assigned a watershed ID attached to it as each stream line belongs to a sub watershed. • DSWaterShedID(i)=WaterShedID(DSLine(i)) if watershedID(i)<>watershedID(DSLine(i)) otherwise DSWaterShedID(i)=0
Accumulated Area(Polygons) • Defined as the sum of all watersheds upstream of a watershed plus the area of the polygon itself. • Actually the accumulated area of the stream lines is found out then this attribute is transferred to watersheds based on watershedID.
Accumulated Area Watershed Polygons
DownStream Trace • Defined as a collection of all the lineID’s that fall on the path starting from the line to the most downstream line of the main watershed, i.e the outlet of the main watershed.
DownStream Trace Console Input (LineID) (example 1022) Output files after Computing Parameters
Defined as a collection of all the stream lines which are upstream of all the user input stream line ID’s. UpStream Trace 1 2 3 4 5 6 7 9 8 10 11
UpStream Trace Output files after Computing Parameters Input + File OR Console
UpStream Trace Algorithm User Input List UpStream Collection 1 2 3 4 5 1 4 2 10 3 5 6 7 5 7 6 10 8 9 6 3 7 4 9 8 9 8 2 1 5 10 10 11
Upstream Trace (1665,1185) 1185 1665
Future Work • Create a DLL (Dynamic Link Libraries) • Why create DLL? So that it can be used as a tool in ArcGIS. • Why not in ArcView 3.x? Because ArcView 3.x does not support Visual basic.