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
aside() allows you to call a function on a ComputedObject (like an ImageCollection or Date) for debugging or visualization without interrupting the chain of operations.
It passes the ComputedObject as the first argument to the provided function, along with any additional arguments you specify.
aside() returns the original ComputedObject, making it seamless to integrate into existing workflows.
The function you provide to aside() can be anything, from print() for debugging to Map.addLayer() for visualization.
This method facilitates understanding intermediate steps and inspecting results within a sequence of Earth Engine operations.
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 first argument, alongside any additional arguments (`var_args`). It returns the original object, enabling method chaining. This is useful for debugging or applying side effects, such as printing values or adding layers to a map during data processing. Examples show its use with `ee.Date` and `ee.ImageCollection` in both JavaScript and Python environments.\n"]]