google / Xee

An Xarray extension for Google Earth Engine
Apache License 2.0
240 stars 28 forks source link

Fix support for computed images by removing a hack to do fast slicing. #156

Closed copybara-service[bot] closed 4 months ago

copybara-service[bot] commented 4 months ago

Fix support for computed images by removing a hack to do fast slicing.

Add a new fast_time_slicing parameter. If True, Xee performs an optimization that makes slicing an ImageCollection across time faster. This optimization loads EE images in a slice by ID, so any modifications to images in a computed ImageCollection will not be reflected.

For those familiar with the code before, the else flow in _slice_collection was only entered when images in the collection didn't have IDs. Clearing the image IDs triggered the else block.

Also adds several new warnings:

Fixes #88 and #145.