Earth Engine در حال معرفی
سطوح سهمیهبندی غیرتجاری برای محافظت از منابع محاسباتی مشترک و تضمین عملکرد قابل اعتماد برای همه است. همه پروژههای غیرتجاری باید تا
۲۷ آوریل ۲۰۲۶ یک سطح سهمیهبندی را انتخاب کنند یا به طور پیشفرض از سطح Community استفاده خواهند کرد. سهمیهبندی سطوح برای همه پروژهها (صرف نظر از تاریخ انتخاب سطح) در
۲۷ آوریل ۲۰۲۶ اعمال خواهد شد.
اطلاعات بیشتر.
ee.ImageCollection.toBands
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک مجموعه را به یک تصویر چند باندی واحد تبدیل میکند که شامل تمام باندهای هر تصویر در مجموعه است. باندهای خروجی با پیشوند نام باندهای موجود با شناسه تصویری که از آن آمده است (مثلاً 'image1_band1') نامگذاری میشوند.
توجه: حداکثر تعداد باندها 5000 است.
| کاربرد | بازگشتها | ImageCollection. toBands () | تصویر |
| استدلال | نوع | جزئیات | این: collection | مجموعه تصاویر | مجموعه ورودی. |
مثالها
ویرایشگر کد (جاوااسکریپت)
// A Landsat 8 TOA image collection (2 months of images at a specific point).
var col = ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA')
.filterBounds(ee.Geometry.Point(-90.70, 34.71))
.filterDate('2020-07-01', '2020-09-01')
.select('B[4-5]'); // Get NIR and SWIR1 bands only.
print('Collection', col);
// Convert the image collection to a single multi-band image. Note that image ID
// ('system:index') is prepended to band names to delineate the source images.
var img = col.toBands();
print('Collection to bands', img);
// Band order is determined by collection order. Here, the collection is
// sorted in descending order of the date of observation (reverse of previous).
var bandOrder = col.sort('DATE_ACQUIRED', false).toBands();
print('Customized band order', bandOrder); تنظیمات پایتون
برای اطلاعات بیشتر در مورد API پایتون و استفاده از geemap برای توسعه تعاملی، به صفحه محیط پایتون مراجعه کنید.
import ee
import geemap.core as geemap
کولب (پایتون)
# A Landsat 8 TOA image collection (2 months of images at a specific point).
col = (
ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA')
.filterBounds(ee.Geometry.Point(-90.70, 34.71))
.filterDate('2020-07-01', '2020-09-01')
.select('B[4-5]')
) # Get NIR and SWIR1 bands only.
display('Collection:', col)
# Convert the image collection to a single multi-band image. Note that image ID
# ('system:index') is prepended to band names to delineate the source images.
img = col.toBands()
display('Collection to bands:', img)
# Band order is determined by collection order. Here, the collection is
# sorted in descending order of the date of observation (reverse of previous).
band_order = col.sort('DATE_ACQUIRED', False).toBands()
display('Customized band order:', band_order)
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2026-04-20 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2026-04-20 بهوقت ساعت هماهنگ جهانی."],[],["The `toBands()` method converts an ImageCollection into a single multi-band Image. Each band in the resulting image corresponds to a band from an image in the collection. The output band names are prefixed with the source image's ID. The order of bands in the output image matches the order of images in the collection. Users can sort the collection to customize the band order, however the maximum band limit is 5000.\n"]]