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

Change ESSL colorisation approach #3021

Merged
merged 6 commits into from
Jan 20, 2025
Merged

Conversation

gerritholl
Copy link
Member

@gerritholl gerritholl commented Dec 18, 2024

Change the approach for ESSL colorisation. Remove the dedicated class and instead define a colourmap to be used with the colorize enhancement. Fix the ratio to be the right way around.

Fixes and closes 3020.

Added an image comparison test for low level moisture over Mali. Because it uses the same instrument (Meteosat-12) as the ones added in #3013, added a column for what scene we are looking at (a simple text label) to the behave tests.

Change the approach for ESSL colorisation.  Remove the dedicated class
and instead define a colourmap to be used with the colorize enhancement.
Fix the ratio to be the right way around.

Fixes and closes 3020.
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.10%. Comparing base (92b9719) to head (cc850ab).
Report is 76 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3021      +/-   ##
==========================================
- Coverage   96.11%   96.10%   -0.01%     
==========================================
  Files         383      381       -2     
  Lines       55604    55544      -60     
==========================================
- Hits        53443    53383      -60     
  Misses       2161     2161              
Flag Coverage Δ
behaviourtests 3.89% <ø> (-0.02%) ⬇️
unittests 96.20% <ø> (-0.01%) ⬇️

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 18, 2024

Pull Request Test Coverage Report for Build 12831451262

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.005%) to 96.214%

Totals Coverage Status
Change from base Build 12829518226: -0.005%
Covered Lines: 53629
Relevant Lines: 55739

💛 - Coveralls

@mraspaud mraspaud assigned mraspaud and gerritholl and unassigned mraspaud Jan 8, 2025
@mraspaud
Copy link
Member

mraspaud commented Jan 8, 2025

Thanks for the PR! Can we have a before/after image comparison?

Change standard_name back to name in the enhancement, or satpy won't
find the correct enhancement and won't use it.
@gerritholl
Copy link
Member Author

Before :

202310010850-MTG-I1-fci-eurol-essl_colorized_low_level_moisture

After:

202310010850-MTG-I1-fci-eurol-essl_colorized_low_level_moisture-after

We see a difference only in the noise part at night, probably because the ratio is defined the other way around.

@gerritholl gerritholl marked this pull request as draft January 17, 2025 14:00
Copy link
Member Author

@gerritholl gerritholl left a comment

Choose a reason for hiding this comment

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

start behave test

@gerritholl gerritholl marked this pull request as ready for review January 17, 2025 15:23
Copy link
Member Author

@gerritholl gerritholl left a comment

Choose a reason for hiding this comment

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

start behave test

Copy link
Member Author

@gerritholl gerritholl left a comment

Choose a reason for hiding this comment

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

start behave test

Copy link
Member Author

@gerritholl gerritholl left a comment

Choose a reason for hiding this comment

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

start behave test

@gerritholl gerritholl marked this pull request as draft January 17, 2025 16:06
Copy link
Member Author

@gerritholl gerritholl left a comment

Choose a reason for hiding this comment

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

start behave test

Copy link
Member Author

@gerritholl gerritholl left a comment

Choose a reason for hiding this comment

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

start behave test

Copy link
Member Author

@gerritholl gerritholl left a comment

Choose a reason for hiding this comment

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

start behave test

Copy link
Member Author

@gerritholl gerritholl left a comment

Choose a reason for hiding this comment

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

start behave test

Copy link
Member Author

@gerritholl gerritholl left a comment

Choose a reason for hiding this comment

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

start behave test

@rymdulf
Copy link

rymdulf commented Jan 17, 2025

Starting to clone and test the repository pytroll/satpy

@rymdulf
Copy link

rymdulf commented Jan 17, 2025

The testing process was executed successfully. See the test results for this pull request here!

@gerritholl gerritholl marked this pull request as ready for review January 17, 2025 16:28
@gerritholl
Copy link
Member Author

For the image comparison tests, night_microphysics shows differences, but that's also true for main, as #3013 was merged like that 🙈

There are also 24 pixels in low level moisture that are different (out of 575280), probably because I calculated the reference image on a different machine and there are rounding differences.

@mraspaud
Copy link
Member

For the image comparison tests, night_microphysics shows differences, but that's also true for main, as #3013 was merged like that 🙈

There are also 24 pixels in low level moisture that are different (out of 575280), probably because I calculated the reference image on a different machine and there are rounding differences.

Something you want to fix in this PR?

@mraspaud mraspaud added enhancement code enhancements, features, improvements component:compositors labels Jan 20, 2025
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!
"No code is better than no code"

@gerritholl
Copy link
Member Author

gerritholl commented Jan 20, 2025

Something you want to fix in this PR?

No. Night microphysics for FCI needs more discussion. And the 24 pixels in low level moisture are below the threshold, rounding differences are allowed.

@mraspaud mraspaud merged commit 46d54f4 into pytroll:main Jan 20, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:compositors enhancement code enhancements, features, improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-implement essl_colorized_low_level_moisture using colorize
4 participants