-
Notifications
You must be signed in to change notification settings - Fork 324
Refactor code for Sun zenith angle corrections and change to effective_solar_pathlength_corrected instead of sunz_corrected for built-in RGB recipes
#3397
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
Open
strandgren
wants to merge
49
commits into
pytroll:main
Choose a base branch
from
strandgren:refactor_solar_zenith_angle_correction_methods
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 37 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
29587e5
Refactor code for standard sunz angle correction and improve document…
strandgren f41db09
Move method for Li and Shibata sun zenith angle correction and remove…
strandgren 0cf0f7f
Also skip sunz correction if effective_solar_path_length_corrected ha…
strandgren 0219e05
Fix typo and also search for already applied sunz corrections in modi…
strandgren 9ba3952
Clarify log message for dual correction. Add type annotation.
strandgren b77e52c
Change tolerance given that the correction is now done in degrees ins…
strandgren 6ac410c
Fix tests for SunZenithCorrector:
strandgren b8cfe96
Add tests to verify that data are not computed and kept lazy
strandgren e9d1398
Remove keyword argument from test where it's not used
strandgren 6da9aeb
Fix typo and pass sunz angle as optional_dataset
strandgren 4cfff67
Add missing tests for EffectiveSolarPathLengthCorrector
strandgren df6ca46
Add UserWarning tests for deprecated reduction parameters in Effectiv…
strandgren 157dfda
Fix SunZenithReducer following refactoring work on SunZenithCorrector…
strandgren 402488e
Fix SunZenithReducer tests to make sure that sunz_sza is passed and u…
strandgren 1654104
Remove unused arguments
strandgren e060df0
Make sure sunzen_corr_cos doesn't compute any data and remove map_blo…
strandgren 7db07fe
Add tests to check that data type is preserved in SunZenithReducer a…
strandgren 8977287
Make sure sunzen_reduction doesn't compute any data and remove map_bl…
strandgren feb958f
Refactor sunzen_corr_cos to reduce cyclomatic complexity,
strandgren afc345f
Refactor tests for sunz modifiers to reduce duplicate code
strandgren d72c4c9
Change default behaviour of SunZenithCorrector to compute true reflec…
strandgren be37d09
use warnings package instead for warning of deprecated use. Fix use o…
strandgren 384a9df
Change from warning to debug message when still applying reduction to…
strandgren 400fd53
Remove log message when correction_limit is used for sunz_corrected s…
strandgren 5b294b2
clarify warning message
strandgren 854f0ad
Fix warning in tests.
strandgren 019a2e8
Add more tests for warnings and invalid combination
strandgren 7b88b02
Add comment on why sunz_corrected is needed for VIIRS data and explic…
strandgren 53b0335
change from `sunz_corrected` to `effective_solar_pathlength_corrected…
strandgren 7091e4f
Update documentation wrt. sunz corrections
strandgren aa95b42
Add missing 'method' for SunZenithReducer and make sure to skip when …
strandgren fca4a32
Add tests for skipping double sunz correction
strandgren 64bf5f1
Use `effective_solar_pathlength_corrected` instead of `sunz_corrected…
strandgren 92bf353
Update documentation for Scene
strandgren 05d20e1
Update modifiers documentation for solar zenith angle corrections
strandgren f2053c0
Remove deprecated reduction of pre-defined `sunz_corrected` modifiers
strandgren db357c0
Use EffectiveSolarPathLengthCorrector modifier but named sunz_correct…
strandgren 51fb5c2
Fix descriptions of FCI true_color_sunz_reduced recipes. Remove FCI c…
strandgren 6d9ce8a
Update doc/source/modifiers.rst
strandgren 292ab54
Clarify docstring wrt. scientific use.
strandgren ee8161b
Revert "Remove deprecated reduction of pre-defined `sunz_corrected` m…
strandgren 1e20f11
Change VIIRS composites to use the name effective_solar_pathlength_co…
strandgren f3b605d
Revert back to old default behaviour of SunZenithCorrector in order t…
strandgren 83dec7b
Add todo for v1.0 cleanup
strandgren 4628c1c
Limit scope for warning
strandgren 0c342a1
Remove explicit modifiers with old/current reduction parameters and c…
strandgren 466d0bc
Add legacy viirs sunz_corrected modifiers
strandgren e8e8853
Remove unintended white-space
strandgren af7a080
Update modifier documentation given (no) change to default behaviour
strandgren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.