-
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
Add xarray/dask support to DayNightCompositor #217
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5318516
Fix mask checking in mask_source_lonlats()
pnuu 964e392
Add first try of xarray/daskifying DayNightCompositor
pnuu d007e42
Remove unnecesary, and harmful, masking
pnuu 94a4238
Add bands if diffent mode images are used with DayNightCompositor
pnuu 3a51cc7
Move DayNightCompositor helper functions closer to it
pnuu 5463753
Fix adding alpha band to DataArray
pnuu daf6440
Fix metadata handling for DayNightCompositor
pnuu cc17908
Fix mask checking in mask_source_lonlats()
pnuu c2abbd8
Add first try of xarray/daskifying DayNightCompositor
pnuu ac302b0
Remove unnecesary, and harmful, masking
pnuu fef2dc5
Add bands if diffent mode images are used with DayNightCompositor
pnuu f656987
Move DayNightCompositor helper functions closer to it
pnuu acfc086
Fix adding alpha band to DataArray
pnuu a072c9c
Fix metadata handling for DayNightCompositor
pnuu 3d6bb14
Merge branch 'feature-xarray-DNC' of https://github.com/pytroll/satpy…
pnuu 78c1309
Use data['bands'] instead of data.bands
pnuu 2961a27
Select lon and lat chunks so that it matches day_data
pnuu 184d74e
Remove un-used "*args" from DayNightCompositor __init__() and __call__()
pnuu 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 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 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
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.
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 know you had questions about this. This is probably one of the easier ways to do this. You could have also taken all the dask arrays for each band, added an alpha with
da.ones(...)
and then didda.stack
to concatenate them. You would then have to create a new xarray and pass all of the dims, attrs, and coords from the original data. At least that's the only way I know how to do it.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.
Well, at least it works! I'll try if I can wrap my head around what you described. Sounds complicated.