-
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
Fix LI L2 accumulated products 'with_area_definition': False
1-d coordinates computation
#2804
Merged
mraspaud
merged 7 commits into
pytroll:main
from
ameraner:fix_li_1dacc_latloncomputation
Jun 4, 2024
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3704679
add *= -1 in test
ameraner dd47827
add *= -1 in reader code
ameraner 766c4ec
add a test to check 1-d and 2-d consistency
ameraner 3c0d46f
rearrange and add comments to test
ameraner 2799a32
restore coordinates variable naming in coords test
ameraner 1b52311
update comments and error message
ameraner d29268c
Merge branch 'main' of github.com:pytroll/satpy into fix_li_1dacc_lat…
ameraner 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
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
Oops, something went wrong.
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 was going to comment that in-place multiplication with Dask arrays is dangerous, but it seems the array is already computed (
azimuth.values
is accessed). Is that necessary for some further computations?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.
That
self.inverse_projection
method is called inside ada.map_blocks
:satpy/satpy/readers/li_base_nc.py
Lines 339 to 344 in d29268c
so believe it should remain daskified. IIRC, we needed to get the
.values
inside there as the followingProj
call accepts only computed values.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 would have thought
da.map_blocks()
would pass Numpy arrays to the method being used 🤔 Haven't used it in a while so might remember incorrectly. And if it works, then it must be correct because Numpy arrays wouldn't have.values
attribute causing a crash 😅