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

Use np.abs in pansharpen to avoid sign issues #34

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Use np.abs in pansharpen to avoid sign issues #34

merged 1 commit into from
Sep 14, 2023

Conversation

leouieda
Copy link
Member

The band average calculation and multiplication with the pan band from the original method assumes we're operating on the DN values, which are all positive. But since we do this on reflectance instead, we need to take absolute values when doing these to avoid issues with signs flipping in the output.

The band average calculation and multiplication with the pan band from
the original method assumes we're operating on the DN values, which are
all positive. But since we do this on reflectance instead, we need to
take absolute values when doing these to avoid issues with signs
flipping in the output.
@leouieda leouieda merged commit 4439907 into main Sep 14, 2023
13 of 14 checks passed
@leouieda leouieda deleted the pan-bug branch September 14, 2023 14:53
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.

None yet

1 participant