Skip to content

Question on tile merging logic #108

Answered by gjoseph92
ljstrnadiii asked this question in Q&A
Discussion options

You must be logged in to vote

Are you talking about making a mosaic? Sounds like you're basically talking about flattening the stack of items, whether through a compositing method like mean(), median(), etc. or mosaic (picking the first valid pixel). The example from the docs on making composites may be helpful.

given a collection of items, merge all tiles into one large xarray lazily, and write to zarr with specific chunk over dask

This basically describes what stackstac.stack does, so a more thorough description here would help.

Note that doing this over a large spatial area is challenging, because it produces more tasks than dask can handle, see this thread: microsoft/PlanetaryComputer#12. There isn't a recommend…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ljstrnadiii
Comment options

@gjoseph92
Comment options

@ljstrnadiii
Comment options

@gjoseph92
Comment options

Answer selected by gjoseph92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants