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

Stackstac episode #82

Open
rbavery opened this issue Jan 7, 2022 · 4 comments
Open

Stackstac episode #82

rbavery opened this issue Jan 7, 2022 · 4 comments
Labels
January Sprint Issue to be tackled during end of January sprint (dates tbd)

Comments

@rbavery
Copy link
Collaborator

rbavery commented Jan 7, 2022

It'd be cool to show folks how to access cloud-hosted geospatial imagery as a dask-backed xarray with stackstac: https://github.com/gjoseph92/stackstac

This would probably necessitate explanation of Dask, chunks, and relevant methods and how to take advantage of chunking. We'd also need to make these caveats very clear:

  • stackstac discards geospatial info like the crs.
  • it's difficult to associate data accessed by stackstac with rioxarray DataArrays

This episode should probably focus on the value of

  1. accessing cloud hosted STAC catalogs and the easy APIs to do so and
  2. the speed improvements that come from Dask/parrallelizing
@rbavery rbavery added the January Sprint Issue to be tackled during end of January sprint (dates tbd) label Jan 7, 2022
@fnattino fnattino self-assigned this Jan 26, 2022
@fnattino
Copy link
Contributor

fnattino commented Apr 1, 2022

#86 and #90 have addressed the background of data access and parallelization, respectively. The stackstac example is going to be addressed by #102.

@fnattino fnattino removed their assignment Apr 1, 2022
@rbavery
Copy link
Collaborator Author

rbavery commented Apr 4, 2022

@fnattino great to see these merged! Either @srmsoumya or I will work on #102 during the first week of May when we have some blocked off time to work on open source , possibly sooner.

@rbavery
Copy link
Collaborator Author

rbavery commented Oct 20, 2022

update: not much movement on this episode to date. but I think I can shoot to have this done after Maptime Davis. Realistically, sometime in November. Some things to cover:

  • selecting multiple single band assets with the assets arg in stackstac.stack to get a multiband DataArray
  • compute multispectral indices using xarray-spatial https://github.com/makepath/xarray-spatial
  • plot change over time at a single pixel.
  • make a gif of spectral indices and label them by date?
  • other kinds of plots, simple time series analysis? Maybe something that brings in the crop region information? Open to suggestions!

@rbavery
Copy link
Collaborator Author

rbavery commented Apr 17, 2024

noting that ODC-stac is more actively maintained than stackstac, so it might be the option to consider for a stacking episode. I don't have bandwidth to work on this right now but happy to review PRs if someone would like to give this lesson a shot.

https://github.com/opendatacube/odc-stac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
January Sprint Issue to be tackled during end of January sprint (dates tbd)
Projects
None yet
Development

No branches or pull requests

2 participants