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

Match all projectables in NDVIHybridGreen.__call__ to avoid coordinate mismatch errors #2694

Merged
merged 4 commits into from
Dec 18, 2023

Conversation

ameraner
Copy link
Member

@ameraner ameraner commented Dec 15, 2023

This PR, in combination with #2690, fixes #2668.

In the previous implementation, inside the NDVIHybridGreen compositor, only the projectables related to the NDVI were being matched. The resulting NDVI fraction was then being combined with the remaining projectable in the super __call__, which resulted in failures due to mismatching coordinates.

This PR fixes this bug by matching all arrays.

Copy link

codecov bot commented Dec 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6d652a6) 95.39% compared to head (fb2ec9e) 95.37%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2694      +/-   ##
==========================================
- Coverage   95.39%   95.37%   -0.02%     
==========================================
  Files         371      371              
  Lines       52697    52704       +7     
==========================================
- Hits        50268    50266       -2     
- Misses       2429     2438       +9     
Flag Coverage Δ
behaviourtests 4.15% <0.00%> (-0.01%) ⬇️
unittests 95.98% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coveralls
Copy link

coveralls commented Dec 15, 2023

Pull Request Test Coverage Report for Build 7224878360

  • 9 of 9 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.956%

Totals Coverage Status
Change from base Build 7223561072: 0.0%
Covered Lines: 50403
Relevant Lines: 52527

💛 - Coveralls

@ameraner ameraner marked this pull request as ready for review December 15, 2023 17:05
@ameraner ameraner self-assigned this Dec 15, 2023
@ameraner ameraner added bug component:compositors PCW Pytroll Contributors' Week labels Dec 15, 2023
@djhoese djhoese removed the PCW Pytroll Contributors' Week label Dec 15, 2023
Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mraspaud mraspaud merged commit 09b90fb into pytroll:main Dec 18, 2023
17 of 19 checks passed
@ameraner ameraner deleted the bugfix_match_arrays_in_ndvi branch April 17, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

FCI HRFI true_color unavailable even after native resampling if upper_right_corner is used
4 participants