Closed davemlz closed 3 years ago
Hey @davemlz, I'm psyched to hear you're using wxee
! I wasn't sure how practical it would be for higher resolution data like Sentinel and Landsat with the size limitations, so that's great you've found some practical applications :)
I haven't run into that MergeError
before, but I'm guessing it's getting multiple images with the same time coordinate and identical band names, and xarray
doesn't like that. I suppose that would probably happen if two overlapping Sentinel scenes with the same system:time_start
were downloaded together... Of course, that definitely doesn't explain why re-running would fix the problem! The only other thing I can think of is that there are some temp files getting left behind that are causing problems... I'll play around to see if I can re-create the problem and hopefully come up with a solution.
Thanks for reporting the error! Keep me posted if you do find a reproducible example or run into more problems, and I'll let you know if I come up with anything.
P.S. Any tips on getting access to Planetary Computer? xD
Okay, I tracked down a bug that might have caused this!
Before, if two pixels at the same x, y, and time coordinate from the same band had different values (even if one was masked), it would raise a MergeError
. Now, a masked and unmasked value can be merged without any issues. Merging two conflicting unmasked values will raise a warning instead of throwing an error.
If you upgrade to v0.1.0
, that will include the bug fix. It's up on PyPI now, but may take a day or two to get to conda-forge
.
Hopefully that fixes your issue, but let me know if it happens again with the new version! :)
@aazuspan, you're the best! You solved the problem like in 4 hours or less! I upgraded to v0.1.0
and today everytime that I run the code it works perfectly and without errors! Thank you and thanks for all the explanation!
I will close the issue with this comment :)
PD: I don't know what's the deal with Microsoft to get access to PC xD They gave me access like a thousand months ago, but, for example, they gave access to César Aybar just yesterday xD there is still hope, don't lose it!
That's awesome @davemlz, glad it fixed the problem! Thanks for reporting it :)
Good to hear that other folks are still getting access to PC. Maybe my turn will come soon! :crossed_fingers:
Hi, @aazuspan!
Just wanted to say that I love
wxee
! I'm using it to combine products from Earth Engine and Planetary Computer and that's amazing! I'm using it almost every day, but sometimes this error happens:It is weird because it is not something that happens all the time, and most of the times I just have to re-run the code and it works. So, I don't know exactly what the problem is xD
Anyway, here I let you the error I got. I was trying to get a cloud mask in GEE and download it as a
xarray
. I aleady tried it again and now it works, but, as I said, I don't know why. It also happens with other datasets. I was downloading some Sentinel-2 data (just as it is, without any processing steps) and sometimes work, but sometimes it doesn't and I can't reproduce the error because when I re-run it, most of the times it works xDOk, that was it!
Thank you!