-
Notifications
You must be signed in to change notification settings - Fork 303
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 x and y indexes before zeroing data in DayNightCompositor #587
Conversation
I have tested the bugfix and now it works both when providng an overview or an overview_sun. Thanks |
Is this the fault of the sunz modifier? Would it be possible to have the sunz modifier retain the x/y coords/indexes? |
The problem is, as far as I can see it, that sunz modifier adds the extra indexes. Maybe it's this line (349) in coszen = xr.DataArray(cos_zen(vis.attrs["start_time"], lons, lats), dims=['y', 'x'], coords=[vis['y'], vis['x']]) This seems to be copied (by me) also to |
Using |
Codecov Report
@@ Coverage Diff @@
## master #587 +/- ##
==========================================
+ Coverage 77.44% 77.47% +0.03%
==========================================
Files 136 136
Lines 19170 19196 +26
==========================================
+ Hits 14847 14873 +26
Misses 4323 4323
Continue to review full report at Codecov.
|
But the sunz corrector should never be given RGB data, right? Or am I misunderstanding you. Also, all SatPy DataArrays should have a y and x dimension, optionally with |
The data can have the |
This PR removes extra indexes from the data arrays before zeroing the data for DayNightCompositor.
git diff origin/master -- "*py" | flake8 --diff