update

parent 7e082f7c
...@@ -2,10 +2,8 @@ ...@@ -2,10 +2,8 @@
"platform": "Sentinel-2", "platform": "Sentinel-2",
"productLevel":"L2A", "productLevel":"L2A",
"startDate": "20150101", "startDate": "20150101",
"endDate": "20191018",
"clouds":"4", "clouds":"4",
"productsDir":"/home/geoint/NAS/sentinelImages/", "productsDir":"/home/geoint/NAS/sentinelImages/",
"projectDir": "/home/geoint/NAS/mario_MID/",
"username":"mario-chirinos", "username":"mario-chirinos",
"password":"r4nc0r4u" "password":"r4nc0r4u"
} }
...@@ -18,7 +18,7 @@ def createDirectories(jsonfile, cfgfile): ...@@ -18,7 +18,7 @@ def createDirectories(jsonfile, cfgfile):
for k in cfg.keys(): for k in cfg.keys():
p[k]=cfg[k] p[k]=cfg[k]
print(os.getcwd()) print(os.getcwd())
p["productsDir"]=os.getcwd()+"/"+dirname+"/" p["projectDir"]=os.getcwd()+"/"+dirname+"/"
p["endDate"]=datetime.datetime.now().strftime("%Y%m%d") p["endDate"]=datetime.datetime.now().strftime("%Y%m%d")
if not os.path.exists(dirname): if not os.path.exists(dirname):
os.mkdir(dirname) os.mkdir(dirname)
......
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