Earth Engine has introduced noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
ee.Dictionary.map
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
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"]]