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
Extended methods for the ee.Image class cannot be thrown to map #65
Comments
I understand what you're trying to do. I ran into this problem a long time ago (#11), but unfortunately there is no actual way to solve it since I have to maintain the core STAC function on the client-side: this in order to keep all datasets updated autimatically. |
Hi @davemlz ! Thanks for your quick reply. I now see the root of evil is the use of
Not ideal but still doable. Hopefully all can be thrown into the Slightly deviated from but similar to this topic, it is weird that All the best, |
Alternatively:
|
Yes! Also, you can go: image_col.preprocess().map(user_process_coll) The |
Hi @davemlz ! I recently want to combine part of the extended methods for the
ee.Image
class into my personal image processing workflow. However, I found that those methods cannot be thrown intomap
. As a simple illustration, the following code excerpt will prompts the error ofA mapped function's arguments cannot be used in client-side operations
.I definitely understand that the above stupid example can be simply resolved by:
However, won't you think it would be great if extended methods for the
ee.Image
class can be used as identically as standard methods for theee.Image
class? For instance, the following another stupid example would work perfectly:I also checked that
eemont
is powered byeeExtra
and throwing toee_extra.STAC.core.scaleAndOffset(image)
tomap
would cause the same issue. As such, I am not sure if it would be too complicated to have this feature which although may be helpful at some cases.All the best,
Fei
The text was updated successfully, but these errors were encountered: