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

Write data as COGs by default #181

Open
remi-braun opened this issue Nov 12, 2024 · 4 comments
Open

Write data as COGs by default #181

remi-braun opened this issue Nov 12, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@remi-braun
Copy link
Member

It would be a good feature to write all the files on disk as COGs.

@remi-braun remi-braun added the enhancement New feature or request label Nov 12, 2024
@guillemc23
Copy link
Contributor

is there any way to directly write the result of a stack as a cog now? 🤔

@remi-braun
Copy link
Member Author

Did you try to pass driver="COG" as kwargs ?

@guillemc23
Copy link
Contributor

guillemc23 commented Jan 31, 2025

What I'm trying to do is to stack all of the bands in a single COG, but, for me this is not working:

# Create the reader
reader = Reader()

# Open your product
prod = reader.open(product_path, remove_tmp=True)
ok_bands = prod.get_existing_bands()
prod.stack(ok_bands, stack_path="stack_COG.tiff", driver="COG", **{TO_REFLECTANCE: False})

Not sure what is the proper way of doing this, but I would like as well to resample all the bands to the higher resolution one instead of the lower resolution one. 🤔

I might open a new issue instead of just spamming here -> #202

remi-braun added a commit that referenced this issue Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants