-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Cropland Production V2 - Few S2 valid acquisiton #71
Comments
22NBM block 13 is also concern by this issue |
associated issue WorldCereal/ewoc_classif#73 |
For
This tile is covered by 157 observation during the @kvantricht and @jdegerickx , I propose to test this tile with 1.0.10 and see if the last improvements solved this type of issue. If it is not the case, we can see if we keep this tile or not. |
If you like us to test it with 1.0.10, please send us the optical and SAR collection CSVs so we can test locally. |
Please find the results below with the new image:
|
Looks like a successful run. I imaging block 13 will be largely over sea. We've seen similar issues before where normally this is off-swath or masked consistently for another reason, but in one or two cases, there's some valid pixels slipping in. Looks like situation is now handled correctly. |
@kvantricht can you indicate me if in this case we expected a empty cropland block or not. I am quite lost |
It looks like the upper part of this tile is never covered by data (cfr screenshot from EObrowser). So this will be reflected in your MASK in off-swath value 255. Normally this should then happen consistently in all acquisitions. It used to result in SkipBlockError here: https://github.com/WorldCereal/wc-classification/blob/8f9a034407db68bf25c1df292f4c2ed08e4d5b60/src/worldcereal/collections.py#L366 What happens in rare circumstances is that one or two acquisitions suddenly have a within-swath value. So the SkipBlockError was not raised, while actually there was then only one acquisition left. It resulted in unexpected issues downstream. I had reported those findings here: https://github.com/WorldCereal/wc-classification/issues/29#issuecomment-1243454126 I now check this off-swath differently and look for how many acquisitions have off-swath pixels in the block (https://github.com/WorldCereal/wc-classification/blob/develop/src/worldcereal/collections.py#L370). The default minimum to proceed is now 3 (only then, there is code-wise no issues downstream). Looking at the location of block 13 in this tile, I would say yes it's supposed to be in the off-swath region of the tile. Note that the root cause is that in a rare case there's suddenly within-wath pixel values in a normally off-swath block. But I think the case is now handled correctly. This block should be skipped. |
Some block inside tiles exhibits very few S2 valid acquisition:
cf. https://github.com/WorldCereal/wc-classification/issues/31 and https://github.com/WorldCereal/wc-classification/issues/29
The text was updated successfully, but these errors were encountered: