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.List.filter
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The filter method is used to filter a list based on a given filter criteria.
When filtering non-image or non-feature list items, the property name 'item' is used to refer to the elements within the ee.Filter functions.
The filter method takes a List and a Filter as arguments and returns a List.
Filters a list to only the elements that match the given filter. To filter list items that aren't images or features, test a property named 'item', e.g., ee.Filter.gt('item', 3).
[[["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 2024-07-13 UTC."],[],["The `List.filter(filter)` method filters a list, returning a new list containing only elements that match the provided filter. Elements are referenced by the property name 'item' within `ee.Filter` functions. Filters can test for equality (`eq`), greater than (`gt`), not null (`notNull`), inclusion in another list (`inList`), and combined conditions using `and`. Examples show how to filter numerical lists in both JavaScript and Python using these comparison operations.\n"]]