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
Fix warning when CF-writing a Scene with SwathDefinition area #2411
Conversation
What is the end result of this change? Does/should a SwathDefinition get a grid mapping? Because it isn't a gridded dataset so does CF grid mapping data handle 2D lon/lat arrays as coordinates? |
The end result of this PR is simply to just not raise a warning when the area is a SwathDefinition.
|
@djhoese I kinda just rushed on this because I would really like to have this warning removed with the next satpy release (which I plan to use to run the production of the dataset I am working on) to avoid my production log file and terminals be overwhelmed by this logger warning. |
@ghiggi failing tests should now be fixed, feel free to merge main into your PR to fix CI |
@mraspaud I further simplified the PR to just avoid issuing a warning when the area is a SwathDefinition. |
Codecov Report
@@ Coverage Diff @@
## main #2411 +/- ##
=======================================
Coverage 94.76% 94.76%
=======================================
Files 329 329
Lines 48879 48880 +1
=======================================
+ Hits 46319 46320 +1
Misses 2560 2560
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This PR fixes an annoying erroneous warning occurring when writing with the CFWriter a satpy Scene to disk.