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.
ee.Dictionary.map
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
Dictionary.map applies an algorithm to each key-value pair in a dictionary.
The algorithm takes a key and its corresponding value as arguments and returns a new value for that key.
If the algorithm returns null for a key, that key is removed from the resulting dictionary.
Map an algorithm over a dictionary. The algorithm is expected to take 2 arguments, a key from the existing dictionary and the value it corresponds to, and return a new value for the given key. If the algorithm returns null, the key is dropped.
[null,null,["Last updated 2024-07-13 UTC."],[],["The core content details the `map` function for dictionaries. This function applies a user-defined algorithm to each key-value pair within a dictionary. The algorithm takes a key and its corresponding value as input and returns a new value. The `map` function iterates through the dictionary, executes the provided algorithm on each pair, and generates a new dictionary with the updated values. If the algorithm's result is `null`, the key is removed from the resulting dictionary. Examples illustrate this with scaling values in a dictionary.\n"]]