diff --git a/process/7_create_basemaps.py b/process/7_create_basemaps.py index f94c5bf2f0e024179c797c16c1fcd09595fdb801..7cbe21709b9606ded4aa4188f1affea10b56f883 100644 --- a/process/7_create_basemaps.py +++ b/process/7_create_basemaps.py @@ -39,16 +39,6 @@ import textwrap # import AWI Basemap configuration from config import * -# ============================================================================ -# GLOBAL VARIABLES -# ============================================================================ - -# GDAL creation options for final result -GDAL_CREATE_OPTIONS_FINAL = '-co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co COPY_SRC_OVERVIEWS=FALSE -co COMPRESS=NONE -co BIGTIFF=IF_NEEDED' - -# Method to create overviews -OVERVIEW_METHOD = 'cubic' - # ============================================================================ # FUNCTIONS diff --git a/process/config.py b/process/config.py index 775ef01da1074a2b678f22fbb99df4b412ef84b9..ee1270d5ef4b809bba1dc4defd321ae7212b5774 100644 --- a/process/config.py +++ b/process/config.py @@ -372,8 +372,7 @@ SERVICE_CONF_FILE = PATH_RESULT / 'service.conf' # The following settings are operational parameters for the process. If the # temporary GeoTIFFs created by GDAL shall be created with different create -# options, they can be adjusted below. The create options for the final -# results, however, are specified in the last python script. +# options, they can be adjusted below. # GDAL creation options # GDAL_CREATE_OPTIONS = '-co COMPRESS=NONE -co BIGTIFF=IF_NEEDED' @@ -388,6 +387,13 @@ GDAL_CREATE_OPTIONS_PY = '--co COMPRESS=DEFLATE --co PREDICTOR=2 --co ZLEVEL=9 - # GDAL warp options WARP_OPTIONS = '-wo SOURCE_EXTRA=1000 -et 0' +# GDAL creation options for final result +# GDAL_CREATE_OPTIONS_FINAL = '-co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co COPY_SRC_OVERVIEWS=FALSE -co COMPRESS=NONE -co BIGTIFF=IF_NEEDED' +GDAL_CREATE_OPTIONS_FINAL = '-co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co COPY_SRC_OVERVIEWS=FALSE -co COMPRESS=DEFLATE -co PREDICTOR=2 -co ZLEVEL=9 -co BIGTIFF=IF_NEEDED' + +# Method to create overviews +OVERVIEW_METHOD = 'cubic' + # ============================================================================ # RUN FUNCTION