Skip to content

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

Open
floriandeboissieu wants to merge 1 commit intosenbox-org:masterfrom
floriandeboissieu:patch-1
Open

Wrong georeferencing of angles grid in S2Resampler.java?#137
floriandeboissieu wants to merge 1 commit intosenbox-org:masterfrom
floriandeboissieu:patch-1

Conversation

@floriandeboissieu
Copy link
Copy Markdown

@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
Copy Markdown

CLAassistant commented Jan 17, 2024

CLA assistant check
All committers have signed the CLA.

@floriandeboissieu
Copy link
Copy Markdown
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