-
Notifications
You must be signed in to change notification settings - Fork 300
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
Drop non-dimensional coordinates in Compositor #796
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we have lon and lat as 2d coords? They wont be dimensional, but still should be kept right ?
I've come across this too a couple of days ago. Just calling resample after loading fixes this. I don't know how resample handles 2d coords but a similar approach of handling coords could maybe be used here. |
I've implemented @djhoese's suggestion to exclude "neglible" non-dimensional coordinates (defined in a global list). That also preserves 2d lon/lat. |
Wasn't the original problem for this PR the |
@djhoese As you suggested all non-dimensional coordinates with |
Ah I missed the |
Is this ready for review (still a draft)? |
Added a test, now ready for review! |
Codecov Report
@@ Coverage Diff @@
## master #796 +/- ##
==========================================
+ Coverage 83.06% 83.72% +0.66%
==========================================
Files 163 165 +2
Lines 23592 24136 +544
==========================================
+ Hits 19596 20209 +613
+ Misses 3996 3927 -69
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I like the simple fix to the problem. Just one change request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy now, LGTM :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure match
is the best name, but it is definitely not the worst. I'd really like if check_areas
got its return values back (see comment below).
Attempt to fix #795 by dropping non-dimensional coordinates.
flake8 satpy