Commit b5bb65aa authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Improve logging.

parent a2444934
......@@ -2981,10 +2981,12 @@ def compress_raster(src_ds, trg_ds, compress=True):
return
# compress raster dataset
LOGGER.info('Compressing: {}'.format(trg_ds))
options = None
if compress:
LOGGER.info('Compressing: {}'.format(trg_ds))
options=['COMPRESS=DEFLATE', 'PREDICTOR=1', 'TILED=YES']
else:
LOGGER.info('Saving: {}'.format(trg_ds))
# save raster dataset
gdal.Translate(str(trg_ds), str(src_ds), creationOptions=options)
......
Supports Markdown
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