Commit 8ffcfb65 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

rgb l2

parent adac2322
......@@ -41,7 +41,7 @@ def rasterWkt(wkt, inputfile, outputfile):
driverTiff = gdal.GetDriverByName('GTiff')
output = driverTiff.Create(outputfile, cols, rows, 1, gdal.GDT_Byte)
print ("BANDS")
print (output.RasterCount)
print (intput.RasterCount)
output.GetRasterBand(1).SetNoDataValue(-99)
output.GetRasterBand(1).WriteArray(np_intput)
output.GetRasterBand(1).FlushCache()
......
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