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

Add example of creating COG from scratch #16

Open
abarciauskas-bgse opened this issue Aug 14, 2023 · 9 comments
Open

Add example of creating COG from scratch #16

abarciauskas-bgse opened this issue Aug 14, 2023 · 9 comments

Comments

@abarciauskas-bgse
Copy link
Contributor

abarciauskas-bgse commented Aug 14, 2023

The current COG examples page only shows how to create a COG from an existing GeoTIFF. It should also describe how to create a COG with a result from a raster operation, like from a numpy array.

@wildintellect
Copy link
Contributor

Do we take an opinion on if we suggest people always use Xarray over numpy? (I know @rbavery in python carpentries took the opinion of always Xarray)

@rbavery
Copy link

rbavery commented Aug 16, 2023

Oh def not! I think xarray makes sense over numpy when you need the labels, but I've run into many cases where it's more efficient and succinct to use numpy arrays directly, especially when working with ml frameworks.

@rbavery
Copy link

rbavery commented Aug 16, 2023

For creating COGs, I think it'd be very useful to show how to do so from both xarray and a numpy array. Probably most useful from rioxarray + existing non-COG geotiff.

@krishnaglodha
Copy link

I can help on this issue and update doc if needed. Please let me know :)

@abarciauskas-bgse
Copy link
Contributor Author

That would be great @krishnaglodha ! I think @omshinde has some content for this, so perhaps you could both contribute.

@krishnaglodha
Copy link

ohh! @omshinde , small world! I know him personally!

@omshinde
Copy link
Collaborator

Thanks @abarciauskas-bgse and @krishnaglodha !
@krishnaglodha Good to see you here!
Re COG tutorial: I have a starter notebook which we recently worked on for a Science use case. I can share it by early next week and then we can discuss further modifications. Does that sound alright?

@omshinde
Copy link
Collaborator

omshinde commented Feb 7, 2024

CC: @wildintellect @abarciauskas-bgse
Here's the PR for this example - #106
I am not able to add reviewers for the notebook. Can you please assign yourself and @krishnaglodha for review? Thank you.

@wildintellect
Copy link
Contributor

@omshinde @krishnaglodha I invited you to join the repo so that you be assigned tickets/reviews.

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

5 participants