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

Add method to solve ID loss in ee.Image #18

Open
davemlz opened this issue Oct 27, 2021 · 1 comment
Open

Add method to solve ID loss in ee.Image #18

davemlz opened this issue Oct 27, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@davemlz
Copy link
Collaborator

davemlz commented Oct 27, 2021

Solve this: davemlz/eemont#42

@davemlz davemlz self-assigned this Oct 27, 2021
@davemlz davemlz added the enhancement New feature or request label Oct 27, 2021
@KMarkert
Copy link
Collaborator

A nice way to solve this would be to include a decorator function that we can decorate functions to keeps attributes from processed imagery. As noted when doing some user defined function on ee.Image or reductions, the properties can be lost which is not very transparent to users and can be frustrating.

There is something similar implement here that keeps all the metadata from images input into mapped functions and another decorator defined for attributes on reductions.

The use internally for converted functions can be something like the following:

@ee_extra.keep_attrs
def external_function(img):
   # do process
   return result

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants