Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The aside() function allows calling a specified function with the current object as the first argument for debugging or display purposes without interrupting the method chain.
It accepts a function (func) and any additional arguments (var_args) to be passed to that function, executing the function but returning the original object.
aside() can be used with various Earth Engine objects like ee.ImageCollection and ee.Number for inserting actions like printing values or adding layers to the map within a processing chain.
The function facilitates debugging and visualizing intermediate steps within complex Earth Engine workflows by enabling the execution of side-effects without altering the primary processing flow.
Calls a function passing this object as the first argument, and returning itself. Convenient e.g. when debugging:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-08 UTC."],[],["The `aside` function, applicable to `ComputedObject` instances, executes a provided function (`func`) with the object as the initial argument, along with any additional `var_args`. It returns the original object, enabling method chaining. This is useful for debugging or applying side effects during object manipulation. Example use cases include printing intermediate states, such as the result of filtering, or adding data to a map, all while continuing to build up on the same object.\n"]]