Commit 4df0c169 authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files
parents 96272b24 dc3526e9
......@@ -109,7 +109,10 @@ if __name__ == "__main__":
datafeatures = data["features"]
for feat in datafeatures:
durl = feat["properties"]["services"]["download"]["url"]
outtif = os.path.join(args.downdir,durl.split("/")[-1])
spurl = durl.split("/")
if len(spurl) < 3 :
spurl = durl.split("%2F")
outtif = os.path.join(args.downdir,spurl[-1])
cmd = ["wget", "-O", outtif, durl]
process_command(cmd)
......
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