Commit e34015cc authored by Aurore Dupuis's avatar Aurore Dupuis
Browse files

Merge branch '69-add-compression-to-syntheses' into 'develop'

Resolve "add compression to syntheses"

Closes #69

See merge request !61
parents 7feaa437 02d3832b
......@@ -57,6 +57,7 @@ def compute_NOBS(input_file, output_file=None):
profile.update(
dtype=rasterio.uint16,
driver='GTiff',
compress='deflate',
count=1)
with rasterio.open(output_file, 'w', **profile) as dst:
......
......@@ -71,6 +71,7 @@ def compute_SOD_SMOD(input_file, sod_file=None, smod_file=None):
profile = src.profile
profile.update(
dtype=rasterio.uint16,
compress='deflate',
count=1)
with rasterio.open(smod_file, 'w', **profile) as dst:
......
......@@ -102,7 +102,7 @@ def compute_SCD(binary_snow_mask_list, multitemp_cloud_vrt, input_dates_filename
expression = "+".join(["im1b" + str(i) for i in band_index])
logging.debug("expression: {}".format(expression))
bandMathApp = band_math([gapfilled_timeserie],
snow_coverage_duration,
snow_coverage_duration + "?&gdal:co:COMPRESS=DEFLATE",
expression,
ram,
otb.ImagePixelType_uint16)
......
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