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.List.get
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Listedeki belirtilen konumdaki öğeyi döndürür. Negatif bir dizin, listenin sonundan geriye doğru sayar.
| Kullanım | İadeler |
|---|
List.get(index) | Nesne |
| Bağımsız Değişken | Tür | Ayrıntılar |
|---|
bu: list | Liste | |
index | Tamsayı | |
Örnekler
Kod Düzenleyici (JavaScript)
// An ee.List object.
var list = ee.List([5, 10, 15, 20, 25, 30]);
// Fetch elements at specified 0-based positions in the list.
print('The second element', list.get(1));
print('The fourth element', list.get(3));
print('The last element', list.get(-1));
print('The second to last element', list.get(-2));
// ee.Number and integer computed objects are valid inputs.
print('Computed object index input', list.get(list.get(0)));
// The result of ee.List.get is an ambiguous object type. You need to cast the
// result to the expected type to use it in subsequent instance methods. For
// example, if you are fetching a number and wish to add it to another number,
// you must cast the .get() result as an ee.Number.
print('Add fetched number to another number', ee.Number(list.get(1)).add(2));
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)
# An ee.List object.
ee_list = ee.List([5, 10, 15, 20, 25, 30])
# Fetch elements at specified 0-based positions in the list.
display('The second element:', ee_list.get(1))
display('The fourth element:', ee_list.get(3))
display('The last element:', ee_list.get(-1))
display('The second to last element:', ee_list.get(-2))
# ee.Number and integer computed objects are valid inputs.
display('Computed object index input:', ee_list.get(ee_list.get(0)))
# The result of ee.List.get is an ambiguous object type. You need to cast the
# result to the expected type to use it in subsequent instance methods. For
# example, if you are fetching a number and wish to add it to another number,
# you must cast the .get() result as an ee.Number.
display('Add fetched number to another number:',
ee.Number(ee_list.get(1)).add(2))
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: 2025-10-30 UTC.
[null,null,["Son güncelleme tarihi: 2025-10-30 UTC."],[],[]]