Commit ef597652 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

rgb l2

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