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

COG format #691

Open
adebardo opened this issue Feb 27, 2025 · 0 comments
Open

COG format #691

adebardo opened this issue Feb 27, 2025 · 0 comments
Labels
[POC] Conception To review Tickets needs approval about it conception

Comments

@adebardo
Copy link
Contributor

Context

In this ticket, we want to add the ability to save our images in the COG format. The COG (Cloud Optimized GeoTIFF) format is an extension of the GeoTIFF format, designed to be optimized for storage and access in the cloud.

Code

We need to modify the dem_coregistration function to allow saving in COG format.
To do this, add a boolean parameter save_cog that modifies the save function [here](https://github.com/GlacioHack/xdem/blob/main/xdem/coreg/workflows.py#L365) to:

# Save coregistered DEM
if out_dem_path is not None:
    dem_coreg.save(out_dem_path, tiled=True, driver="COG")

Tests

Conduct internal tests.

@adebardo adebardo added the [POC] Conception To review Tickets needs approval about it conception label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[POC] Conception To review Tickets needs approval about it conception
Projects
None yet
Development

No branches or pull requests

1 participant