ee.ImageCollection.reduce
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک کاهش دهنده در تمام تصاویر یک مجموعه اعمال می کند.
اگر کاهنده یک ورودی واحد داشته باشد، به طور جداگانه برای هر باند از مجموعه اعمال می شود. در غیر این صورت باید همان تعداد ورودی را داشته باشد که مجموعه دارای باند است.
نامهای خروجی کاهنده نام باندهای خروجی را تعیین میکنند: کاهندههایی با چندین ورودی مستقیماً از نامهای خروجی استفاده میکنند، در حالی که کاهندههای با یک ورودی، نام خروجی را با نام باند ورودی پیشوند میدهند (به عنوان مثال، '10_mean'، '20_mean').
استفاده | برمی گرداند | ImageCollection. reduce (reducer, parallelScale ) | تصویر |
استدلال | تایپ کنید | جزئیات | این: collection | ImageCollection | مجموعه تصاویر برای کاهش. |
reducer | کاهنده | کاهش دهنده برای اعمال به مجموعه داده شده. |
parallelScale | شناور، پیش فرض: 1 | یک عامل مقیاس که برای محدود کردن استفاده از حافظه استفاده می شود. استفاده از یک مقیاس موازی بزرگتر (مثلاً 2 یا 4) ممکن است محاسباتی را فعال کند که حافظه آنها با حالت پیش فرض تمام می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eApplies a reducer function across all images within an ImageCollection, resulting in a single output Image.\u003c/p\u003e\n"],["\u003cp\u003eReducers can operate on individual bands or multiple bands simultaneously, determining the output band names accordingly.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a parallelScale factor to manage memory consumption during computation.\u003c/p\u003e\n"],["\u003cp\u003eAccess this functionality via the \u003ccode\u003eImageCollection.reduce()\u003c/code\u003e method, providing the reducer and optional parallelScale as parameters.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.reduce\n\nApplies a reducer across all of the images in a collection.\n\n\u003cbr /\u003e\n\nIf the reducer has a single input, it will be applied separately to each band of the collection; otherwise it must have the same number of inputs as the collection has bands.\n\nThe reducer output names determine the names of the output bands: reducers with multiple inputs will use the output names directly, while reducers with a single input will prefix the output name with the input band name (e.g., '10_mean', '20_mean').\n\n| Usage | Returns |\n|------------------------------------------------------|---------|\n| ImageCollection.reduce`(reducer, `*parallelScale*`)` | Image |\n\n| Argument | Type | Details |\n|--------------------|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `collection` | ImageCollection | The image collection to reduce. |\n| `reducer` | Reducer | The reducer to apply to the given collection. |\n| `parallelScale` | Float, default: 1 | A scaling factor used to limit memory use; using a larger parallelScale (e.g., 2 or 4) may enable computations that run out of memory with the default. |"]]