Skip to content
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

IDEPIX_CLOUD flag not correctly set #18

Closed
marpet opened this issue Oct 12, 2020 · 2 comments
Closed

IDEPIX_CLOUD flag not correctly set #18

marpet opened this issue Oct 12, 2020 · 2 comments
Assignees
Labels
bug Something isn't working MSI S2 MSI Idepix

Comments

@marpet
Copy link
Contributor

marpet commented Oct 12, 2020

It has been observed that the pixel_classif_flags.IDEPIX_CLOUD flag is set identically to the pixel_classif_flags.IDEPIX_CLOUD_SURE flag. Actually this flag should be the combination of pixel_classif_flags.IDEPIX_CLOUD_SURE and pixel_classif_flags.IDEPIX_CLOUD_AMBIGUOUS.

The mask IDEPIX_CLOUD corresponding to pixel_classif_flags.IDEPIX_CLOUD gives the correct result.
It is defined as:

pixel_classif_flags.IDEPIX_CLOUD or pixel_classif_flags.IDEPIX_CLOUD_SURE or pixel_classif_flags.IDEPIX_CLOUD_AMBIGUOUS

After updating the flags this expression should only be like: pixel_classif_flags.IDEPIX_CLOUD

The image below shows the 3 flags with the mask as overlay.
image

This has been observed for the S2 Idepix results, probably this is common to all sensor implementations.

@marpet marpet added the bug Something isn't working label Oct 12, 2020
@clebreton
Copy link
Collaborator

I am commenting here because I am not sure how far we are on this task.
Whatever the definition of a flag, the corresponding mask in SNAP should reflect it one to one and not assume a combination of flags. Otherwise it needs to have a different name. This is what was confusing here.
There are two tasks here:

  1. to harmonise flag definition for S2 (and maybe for others? to check) with mask definition in SNAP, so that mask IDEPIX_CLOUD = pixel_classif_flags.IDEPIX_CLOUD
  2. to change pixel_classif_flags.IDEPIX_CLOUD definition for S2 to pixel_classif_flags.IDEPIX_CLOUD = pixel_classif_flags.IDEPIX_CLOUD_SURE OR pixel_classif_flags.IDEPIX_CLOUD_AMBIGUOUS

@marpet
Copy link
Contributor Author

marpet commented Apr 15, 2021

Fixed by: 95e1412

@marpet marpet closed this as completed Apr 15, 2021
@marpet marpet added the MSI S2 MSI Idepix label Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working MSI S2 MSI Idepix
Projects
None yet
Development

No branches or pull requests

3 participants