Commit 1bb798c7 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

rgb l2

parent a450d0e9
......@@ -42,7 +42,7 @@ def rasterWkt(wkt, inputfile, outputfile):
print ("BANDS")
print (output.RasterCount)
for b in range(output.RasterCount):
for b in range(1, output.RasterCount+1):
np_input = intput.GetRasterBand(b).ReadAsArray(0,0,cols,rows)
output.GetRasterBand(b).SetNoDataValue(-99)
output.GetRasterBand(b).WriteArray(np_input)
......
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