Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
Stay organized with collections
Save and categorize content based on your preferences.
Reduces an image collection by setting each pixel to 1 if and only if any of the non-masked values at that pixel are non-zero across the stack of all matching bands. Bands are matched by name.
[[["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-06-05 UTC."],[[["\u003cp\u003eReduces an image collection to a single image where pixels are set to 1 if any corresponding non-masked pixel in the collection is non-zero.\u003c/p\u003e\n"],["\u003cp\u003eBand matching across images within the collection is based on band names for pixel comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe reduction process considers only non-masked pixel values, ignoring masked areas in the input image collection.\u003c/p\u003e\n"],["\u003cp\u003eThis operation is accessible through the \u003ccode\u003eImageCollection.or()\u003c/code\u003e method and returns a single image as its output.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.or\n\nReduces an image collection by setting each pixel to 1 if and only if any of the non-masked values at that pixel are non-zero across the stack of all matching bands. Bands are matched by name.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------|---------|\n| ImageCollection.or`()` | Image |\n\n| Argument | Type | Details |\n|--------------------|-----------------|---------------------------------|\n| this: `collection` | ImageCollection | The image collection to reduce. |"]]