Closed mmann1123 closed 9 months ago
Interestingly not a problem with:
from geowombat.data import l8_224078_20200518
with gw.open([l8_224078_20200518]) as src:
display(src[0].values)
with gw.open(
[l8_224078_20200518]*800,
stack_dim="band",
) as src:
display(src[0].values)
Issue was bands had different resolutions, should we throw an error in this case?
Resolved with:
with gw.config.update(ref_image=files[-1]):
I would have expected xarray to throw an error. By different resolutions, you mean the image had different row/column dimensions and still got stacked (albeit incorrectly)?
yep different row/col without an error.
On Tue, Jun 6, 2023 at 5:01 PM Jordan Graesser @.***> wrote:
I would have expected xarray to throw an error. By different resolutions, you mean the image had different row/column dimensions and still got stacked (albeit incorrectly)?
— Reply to this email directly, view it on GitHub https://github.com/jgrss/geowombat/issues/271#issuecomment-1579445646, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHR6VFCP5E47LBIEYUEYF3XJ6LBDANCNFSM6AAAAAAY4XUN3I . You are receiving this because you authored the thread.Message ID: @.***>
Can you share some of those images so that I can test the errors we should check for?
I just noticed some odd behavior with a large list of images:
Same image but as part of a stack: