Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out_crea_options has no effect #20

Closed
yurithefury opened this issue Mar 9, 2023 · 1 comment
Closed

out_crea_options has no effect #20

yurithefury opened this issue Mar 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@yurithefury
Copy link

  • arosics version: 1.8.0
  • Python version: 3.8
  • Operating System: Win11/WSL1

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 danschef added the bug Something isn't working label Mar 10, 2023
@danschef
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants