Skip to content
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

Create a single band image from a list of images #347

Merged
merged 8 commits into from
Oct 24, 2024
Merged

Conversation

fitoprincipe
Copy link
Member

Since the purpose of this package is make life easier to devs (like me), this class method creates a single band image from a list of images, useful when ee.Image(thelist) doesn't work (like in the test).

The spirit of this "shortcut" is similar to ee.Collection.aggregate_sum(property), the user could do ee.Collection.reduceColumns(ee.Reducer.sum(), [property]), but GEE API makes it easy for the user.

@fitoprincipe fitoprincipe requested a review from 12rambau October 21, 2024 18:51
geetools/Image.py Outdated Show resolved Hide resolved
geetools/Image.py Outdated Show resolved Hide resolved
tests/test_Image.py Outdated Show resolved Hide resolved
Copy link
Member

@12rambau 12rambau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super cool thanks!

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.01%. Comparing base (b7aa2f8) to head (1047d60).
Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #347      +/-   ##
==========================================
- Coverage   91.07%   91.01%   -0.06%     
==========================================
  Files          26       27       +1     
  Lines        1568     1625      +57     
  Branches       72       75       +3     
==========================================
+ Hits         1428     1479      +51     
- Misses        123      127       +4     
- Partials       17       19       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@12rambau 12rambau merged commit 65598b5 into main Oct 24, 2024
11 of 12 checks passed
@12rambau 12rambau deleted the image-from-list branch October 24, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants