Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.ImageCollection.map
Stay organized with collections
Save and categorize content based on your preferences.
Maps an algorithm over a collection.
Returns the mapped collection.
Usage | Returns | ImageCollection.map(algorithm, dropNulls) | Collection |
Argument | Type | Details | this: collection | Collection | The Collection instance. |
algorithm | Function | The operation to map over the images or features of the collection. A JavaScript function that receives an image or features and returns one. The function is called only once and the result is captured as a description, so it cannot perform imperative operations or rely on external state. |
dropNulls | Boolean, optional | If true, the mapped algorithm is allowed to return nulls, and the elements for which it returns nulls will be dropped. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eApplies a user-defined function (algorithm) to each element within an ImageCollection.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new collection containing the results of applying the algorithm to each element.\u003c/p\u003e\n"],["\u003cp\u003eOptionally allows for removing elements where the algorithm returns null values using the \u003ccode\u003edropNulls\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.map\n\n\u003cbr /\u003e\n\nMaps an algorithm over a collection.\n\n\u003cbr /\u003e\n\nReturns the mapped collection.\n\n| Usage | Returns |\n|-------------------------------------------------|------------|\n| ImageCollection.map`(algorithm, `*dropNulls*`)` | Collection |\n\n| Argument | Type | Details |\n|--------------------|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `collection` | Collection | The Collection instance. |\n| `algorithm` | Function | The operation to map over the images or features of the collection. A JavaScript function that receives an image or features and returns one. The function is called only once and the result is captured as a description, so it cannot perform imperative operations or rely on external state. |\n| `dropNulls` | Boolean, optional | If true, the mapped algorithm is allowed to return nulls, and the elements for which it returns nulls will be dropped. |"]]