Closed gerritholl closed 1 week ago
The parent function check_sunlight_coverage()
has these log messages printed when pytroll-schedule is not installed
if get_twilight_poly is None:
logger.error("Trollsched import failed, sunlight coverage calculation not possible")
logger.info("Keeping all products")
return
so I'd say this is not an issue (do not call private functions directly).
Out of the two other plugin that use the pytroll-schedule package, covers()
, has the same check, but check_valid_data_fraction()
does not. These are also using a public get_scene_coverage()
function.
I'll create a PR for these plugins and close this issue.
Describe the bug
When I try to calculate sunlight coverage while pytroll-schedule is not installed, I get a TypeError.
To Reproduce
Expected behavior
Some number between 0 and 1.
Actual results
Environment Info:
Additional context
Found this when calling
_get_sunlight_coverage
directly to find out why it gives 0 for me in the middle of the day. Perhaps there will be a new issue soon...