Earth Engine, paylaşılan bilgi işlem kaynaklarını korumak ve herkes için güvenilir performans sağlamak amacıyla
ticari olmayan kota katmanlarını kullanıma sunuyor. Ticari olmayan tüm projelerin
27 Nisan 2026'ya kadar bir kota katmanı seçmesi gerekir. Aksi takdirde varsayılan olarak Topluluk Katmanı kullanılır. Katman kotaları,
27 Nisan 2026'dan itibaren tüm projeler için (katman seçim tarihinden bağımsız olarak) geçerli olacaktır.
Daha fazla bilgi edinin.
ee.ImageCollection.select
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Koleksiyondaki her resimden bant seçin.
Seçili bantları içeren görüntü koleksiyonunu döndürür.
| Kullanım | İadeler |
|---|
ImageCollection.select(selectors, names) | ImageCollection |
| Bağımsız Değişken | Tür | Ayrıntılar |
|---|
bu: imagecollection | ImageCollection | ImageCollection örneği. |
selectors | List[Object] | Seçilecek bantları belirten adlar, normal ifadeler veya sayısal dizinler listesi. |
names | List[String], isteğe bağlı | Çıkış bantları için yeni adların listesi. Seçilen bant sayısıyla eşleşmelidir. |
Örnekler
Kod Düzenleyici (JavaScript)
// A Sentinel-2 surface reflectance image collection.
var col = ee.ImageCollection('COPERNICUS/S2_SR')
.filterBounds(ee.Geometry.Point(-122.152, 37.336))
.filterDate('2021-01-01', '2021-02-01');
print('All band names', col.first().bandNames());
print('Select a band by name',
col.select('B11').first().bandNames());
print('Select a band by index',
col.select(10).first().bandNames());
print('Select bands using a list',
col.select(['B11', 'B8', 'B3']).first().bandNames());
print('Select bands by an argument series',
col.select('B11', 'B8', 'B3').first().bandNames());
print('Mixing string and integer selectors is valid',
col.select(10, 'B8', 2).first().bandNames());
print('Rename selected bands using two corresponding lists',
col.select(['B11', 'B8', 'B3'], ['SWIR1', 'NIR', 'Green'])
.first().bandNames());
// Use regular expressions to select bands.
print('Match "QA" followed by any two characters',
col.select('QA..').first().bandNames());
print('Match "B" followed by any character, any number of times',
col.select('B.*').first().bandNames());
print('Match "B" followed by any character, and any optional third character',
col.select('B..?').first().bandNames());
print('Match "B" followed by a character in the range 6-8',
col.select('B[6-8]').first().bandNames());
print('Match "B" followed by a character in the range 1-9 and then 1-2',
col.select('B[1-9][1-2]').first().bandNames());
print('Match "B" or "QA" each followed by any character, any number of times.',
col.select('B.*|QA.*').first().bandNames());
Python kurulumu
Python API'si ve etkileşimli geliştirme için geemap kullanımı hakkında bilgi edinmek üzere
Python Ortamı sayfasına bakın.
import ee
import geemap.core as geemap
Colab (Python)
# A Sentinel-2 surface reflectance image collection.
col = ee.ImageCollection('COPERNICUS/S2_SR').filterBounds(
ee.Geometry.Point(-122.152, 37.336)
).filterDate('2021-01-01', '2021-02-01')
display('All band names', col.first().bandNames())
display('Select a band by name:',
col.select('B11').first().bandNames())
display('Select a band by index:',
col.select(10).first().bandNames())
display('Select bands using a list:',
col.select(['B11', 'B8', 'B3']).first().bandNames())
display('Select bands by an argument series:',
col.select('B11', 'B8', 'B3').first().bandNames())
display('Mixing string and integer selectors is valid:',
col.select(10, 'B8', 2).first().bandNames())
display('Rename selected bands using two corresponding lists:',
col.select(['B11', 'B8', 'B3'], ['SWIR1', 'NIR', 'Green'])
.first().bandNames())
# Use regular expressions to select bands.
display('Match "QA" followed by any two characters:',
col.select('QA..').first().bandNames())
display('Match "B" followed by any character, any number of times:',
col.select('B.*').first().bandNames())
display('Match "B" followed by any character, and any optional third character:',
col.select('B..?').first().bandNames())
display('Match "B" followed by a character in the range 6-8:',
col.select('B[6-8]').first().bandNames())
display('Match "B" followed by a character in the range 1-9 and then 1-2:',
col.select('B[1-9][1-2]').first().bandNames())
display('Match "B" or "QA" each followed by any character, any number of times:',
col.select('B.*|QA.*').first().bandNames())
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2026-01-08 UTC.
[null,null,["Son güncelleme tarihi: 2026-01-08 UTC."],[],["The `select` method extracts specific bands from an ImageCollection, returning a new ImageCollection with those bands. Band selection can be done by name, index, or a list of these. New band names can be assigned using an optional list, which must match the number of selected bands. Regular expressions can also be used to select bands based on pattern matching. The code examples demonstrate these selection techniques for both JavaScript and Python.\n"]]