Question on tile merging logic #108
-
I am considering using this as an intermediate solution to write out a region or collection to an xarray zarr datastore. Something like: given a collection of items, merge all tiles into one large xarray lazily, and write to zarr with specific chunk over dask. Why? I have access patterns like random slices of much smaller regions than the native zoom of the underlying raster data. Questions:
Sweet project! Excited to give it a try soon. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
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
This basically describes what 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 recommended way to do this yet. |
Beta Was this translation helpful? Give feedback.
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.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…