delete missing data

parent b547c9b1
...@@ -14,7 +14,7 @@ def imageMissingData(filename): ...@@ -14,7 +14,7 @@ def imageMissingData(filename):
data = inputImage.GetRasterBand(1).ReadAsArray(0,0,cols,rows) data = inputImage.GetRasterBand(1).ReadAsArray(0,0,cols,rows)
inputImage = None inputImage = None
return (data>0).sum()/(rows*cols) return (data>0).sum()/float((rows*cols))
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
def main(argv): def main(argv):
......
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