GFZ / arosics

AROSICS - Automated and Robust Open-Source Image Co-Registration Software
https://git.gfz-potsdam.de/danschef/arosics
Apache License 2.0
146 stars 26 forks source link

out_crea_options has no effect #20

Closed yurithefury closed 1 year ago

yurithefury commented 1 year ago

Description

Global image co-registration works as expected. However ,out_crea_options has no effect on the output image.

What I Did

im_reference = 'image_reference.tif'
im_target = 'image_target.tif'

CR = COREG(
    im_reference,
    im_target,
    fmt_out='GTiff',
    path_out=f"{im_target.split('.tif')[0]}_coreg.tif",
    ws=(256, 256),
    max_shift=10,
    max_iter=5,
    nodata=(None, None),
    out_crea_options=["COMPRESS=DEFLATE", "BIGTIFF=YES", "ZLEVEL=9", "BLOCKXSIZE=512", "BLOCKYSIZE=512"]
)

CR.correct_shifts()

The above code executes without any errors, but the output image is uncompressed. Does anybody know what might be the problem?

danschef commented 1 year ago

Thanks for reporting. It seems like the parameter out_crea_options was not passed through correctly in AROSICS when using the global co-registration and if no resampling of the co-registered output is needed.

This should now be fixed in version 1.8.1 which will be soon become available on PyPI and conda-forge.