Closed marcronq closed 3 years ago
@arielze do you think this would be better?
merged = merge_all([one, other], dest_resolution=(1, 1), roi=roi)
assert merged == one
yes, that is better, because it makes clear what is expected to happen
There is another merged PR that focused on this same issue https://github.com/satellogic/telluric/pull/296 but it was discovered then that the very same thing can raise another problem and it is not covered by that fix.
When trying to merge some images using
telluric.georaster.merge_all
, if a pair of them are really close (around images resolution) it appears that their footprints intersect but if you try to crop those images an exception is raised stating that a negative width/height can't be used. This PR just adds a catch forValueError
to avoid that problem and let other images to merge, if they can.