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

update exporting geotiff notebook to use write_cog #586

Closed
BexDunn opened this issue Jun 9, 2020 · 3 comments
Closed

update exporting geotiff notebook to use write_cog #586

BexDunn opened this issue Jun 9, 2020 · 3 comments

Comments

@BexDunn
Copy link
Collaborator

BexDunn commented Jun 9, 2020

write_geotiff has been deprecated by write_cog in datacube 1.8.0 https://datacube-core.readthedocs.io/en/latest/about/whats_new.html

  • update the exporting geotiff notebook
  • maybe also update the script if it needs it?
@caitlinadams
Copy link
Collaborator

Chad's initial notes on what needs to be done:

  1. Use the info here: https://datacube-core.readthedocs.io/en/latest/dev/api/generate/datacube.utils.cog.write_cog.html to re-write the Exporting_GeoTIFFS.ipynb file: from datacube.helpers import write_geotiff function is being replaced by the datacube.utils.cog.write_cog function. Be sure to make a note of the extra memory limitations of this function, and leave the code block on using the array_to_geotiff function so a user can decide not to use the write_cog function if they prefer not to use the extra memory.
  2. Go through the Frequently_used_code and Real_world_examples folders and replace any write_geotiff code blocks with write_cog .

Any other recommendations for what specifically needs to be done appreciated!

@BexDunn
Copy link
Collaborator Author

BexDunn commented Aug 21, 2020

Additonally please explicitly pass dtype and nodata from the rasterio options in

@robbibt
Copy link
Member

robbibt commented Aug 23, 2020

I might have a go at this this week if that's OK? It's definitely something that is coming up over and over on Slack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants