Commit 9fac44bf authored by Benjamin Pillot's avatar Benjamin Pillot
Browse files

Fix GDAL data type

parent aed6d009
......@@ -22,7 +22,8 @@ OP_WINDOW_SIZE = 1000
@_return_raster
def _log(raster, out_file):
out_ds = _clone_gdal_dataset(raster, out_file, "float32")
out_ds = _clone_gdal_dataset(raster, out_file,
gdal.GetDataTypeByName("float32"))
for band in range(raster.nb_band):
for window in get_block_windows(OP_WINDOW_SIZE, raster.x_size, raster.y_size):
......@@ -38,7 +39,8 @@ def _log(raster, out_file):
@_return_raster
def _log10(raster, out_file):
out_ds = _clone_gdal_dataset(raster, out_file, "float32")
out_ds = _clone_gdal_dataset(raster, out_file,
gdal.GetDataTypeByName("float32"))
for band in range(raster.nb_band):
for window in get_block_windows(OP_WINDOW_SIZE, raster.x_size, raster.y_size):
......
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