Commit 5d4270bc authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

box

parent 9eee94a5
...@@ -46,7 +46,10 @@ def geoint_pr_ndvi(nir_fn, vir_fn, outfile): ...@@ -46,7 +46,10 @@ def geoint_pr_ndvi(nir_fn, vir_fn, outfile):
output.GetRasterBand(1).FlushCache() output.GetRasterBand(1).FlushCache()
output.SetGeoTransform(geotransform) output.SetGeoTransform(geotransform)
wkt = nir.GetProjection() wkt = nir.GetProjection()
output.SetProjection(osr.SpatialReference().ImportFromWkt(wkt).ExportToWkt()) sr = osr.SpatialReference()
sr.ImportFromWkt(wkt)
output.SetProjection(sr.ExportToWkt())
output = None output = 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