Commit 7671fdf9 authored by POLCHER Jan's avatar POLCHER Jan 🚴🏾
Browse files

Generate a name for the GRDC stations. To be extracted from the file later.

parent 6ed09ac7
......@@ -59,9 +59,9 @@ class Locations :
self.ltype.append(col[4].lower())
tmpname=" ".join(col[5:])
if len(tmpname) < 1 :
lname.append("NoName")
self.lname.append("NoName")
else :
lname.append(tmpname)
self.lname.append(tmpname)
return nb
#
# Get all the locations from the GRDC database
......@@ -77,6 +77,8 @@ class Locations :
self.lat.append(g.variables["lat"][i])
self.upstream.append(g.variables["area"][i])
self.ltype.append("gauging station")
# Proper information to be added later.
self.lname.append("GRDCName")
g.close()
return nb
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment