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

Writing COG to S3? #11

Open
rsignell-usgs opened this issue Jun 18, 2021 · 1 comment
Open

Writing COG to S3? #11

rsignell-usgs opened this issue Jun 18, 2021 · 1 comment

Comments

@rsignell-usgs
Copy link
Member

A colleague asked me how to write COG to S3 from xarray, and I got something working using fsspec simplecache:
https://nbviewer.jupyter.org/gist/rsignell-usgs/3472ca07779ded81833a0cd3deb24cf9

but I'm wondering if:

  • there is a better way (a best practice!) to do this?
  • if yes, whether that best practice might be worth demonstrating in a notebook?
  • (of course it wouldn't work in general -- folks would need to supply their own bucket and credentials, but might still be useful)?
@scottyhq
Copy link
Member

thanks @rsignell-usgs definitely would welcome a notebook on writing COGs here! Looking quickly at your notebook I see
"we just basically writing to local disk then pushing to S3". It's definitely possible to upload from memory directly to S3... I don't have an example on hand, but should document the two approaches.

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

2 participants