merge json

parent 29103a06
......@@ -14,7 +14,7 @@ def imageMissingData(filename):
data = inputImage.GetRasterBand(1).ReadAsArray(0,0,cols,rows)
inputImage = None
return (data>0).sum()/float((rows*cols))
return float(data>0).sum()/float((rows*cols))
#-------------------------------------------------------------------------------
def main(argv):
......@@ -23,7 +23,7 @@ def main(argv):
else:
dataArea = imageMissingData(argv[1])
if dataArea<float(argv[2])/100.0 :
print ("Deleting " + argv[1] + " " + dataArea)
print ("Deleting " + argv[1] + " " + str(dataArea))
# os.system("rm " + argv[1])
......
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