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

Wrong georeferencing of angles grid in S2Resampler.java? #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

floriandeboissieu
Copy link

@floriandeboissieu floriandeboissieu commented Jan 17, 2024

@marpet Is it possible that there is a mistake in the georeferencing of the grid of angles when converting to image in updateAngleBands ?

Considering the detector footprint gml vector as the truth, the current georeferencing does not seem to align/cover well with the detector footprint. Indeed, it seems to align/center better shifting the upper-left corner by half a pixel.

Below is the detector footprints as a vector (gml) over one of the detector rasters (detectorId=6 in that case). It was taken from band "B02" of scene "S2B_MSIL1C_20181225T092409_N0207_R093_T33NTD_20181225T113038.SAFE"

  • current s2tbx georeferencing:

image

  • shifting the UL by half a pixel:

image

If it is the case, the current PR shifts the origin of the angle image of half a pixel compared to the origin of the angle grid, so that the pixel center coordinates align well with the grid.

I am sorry I did not use the forum for that, but I was not allowed to post as my forum account was new, and I did not find any specification on how to get that permission...

@CLAassistant
Copy link

CLAassistant commented Jan 17, 2024

CLA assistant check
All committers have signed the CLA.

@floriandeboissieu
Copy link
Author

floriandeboissieu commented Feb 10, 2024

Please, could someone have a look to that?
Because it may have quite some consequences on the interpolated angles used for BRDF correction...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants