delete missing data

parent 0a4bce9e
...@@ -9,7 +9,7 @@ import sys ...@@ -9,7 +9,7 @@ import sys
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
def imageMissingData(filename): def imageMissingData(filename):
inputImage = gdal.Open(inputfile) inputImage = gdal.Open(filename)
rows, cols, geotransform = inputImage.RasterYSize, inputImage.RasterXSize, inputImage.GetGeoTransform() rows, cols, geotransform = inputImage.RasterYSize, inputImage.RasterXSize, inputImage.GetGeoTransform()
data = inputImage.GetRasterBand(1).ReadAsArray(0,0,cols,rows) data = inputImage.GetRasterBand(1).ReadAsArray(0,0,cols,rows)
inputImage = None inputImage = None
......
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