Commit b0f7cf0d authored by Lozac'h Loic's avatar Lozac'h Loic

Update SoilMoistureBatchExtractAndMosaic2S2Tile.py

parent 1bd1d63e
......@@ -141,8 +141,8 @@ if __name__ == "__main__":
for file in indir:
bname = os.path.basename(file).split(".")[0]
splitbname = bname.split("_")
acqdate = splitbname[-1].split("T")[0]
acqtime = splitbname[-1].split("T")[1]
acqdate = splitbname[4].split("T")[0]
acqtime = splitbname[4].split("T")[1]
outfilebase = os.path.join(abspathout,"_".join(splitbname[:3])+"_"+tileid+"_"+acqdate+"T")
......@@ -153,7 +153,7 @@ if __name__ == "__main__":
if len(l) == 2 :
in1 = os.path.join(indir[l[0]], "Sigma0_VV.img")
in2 = os.path.join(indir[l[1]], "Sigma0_VV.img")
outfile = outfilebase +"000000"+"_VV.TIF"
outfile = outfilebase + acqtime +"_VV.TIF"
if os.path.exists(outfile) :
continue
......@@ -162,7 +162,7 @@ if __name__ == "__main__":
in1 = os.path.join(indir[l[0]], "incidenceAngleFromEllipsoid.img")
in2 = os.path.join(indir[l[1]], "incidenceAngleFromEllipsoid.img")
outfile = outfilebase +"000000"+"_THETA.TIF"
outfile = outfilebase +acqtime +"_THETA.TIF"
exmos_pipeline(args.format, in1, in2, args.inref, outfile)
......
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