Duyuru :
15 Nisan 2025 'ten önce Earth Engine'i kullanmak için kaydedilen tüm ticari olmayan projelerin erişimlerini sürdürebilmeleri için
ticari olmayan uygunluklarını doğrulamaları gerekir. 26 Eylül 2025'e kadar doğrulama yapmazsanız erişiminiz bekletilebilir.
Geri bildirim gönderin
ee.ImageCollection.sort
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir koleksiyonu belirtilen özelliğe göre sıralayın.
Sıralanmış koleksiyonu döndürür.
Kullanım İadeler ImageCollection. sort (property, ascending )
Koleksiyon
Bağımsız Değişken Tür Ayrıntılar bu: collection
Koleksiyon Collection örneği. property
Dize Sıralama yapılacak özellik. ascending
Boole değeri, isteğe bağlı Artan veya azalan düzende sıralanıp sıralanmayacağını belirtir. Varsayılan değer true'dur (artan).
Örnekler
Kod Düzenleyici (JavaScript)
// 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' );
print ( 'Collection' , col );
// Sort the collection in ASCENDING order of image cloud cover.
var colCldSortAsc = col . sort ( 'CLOUD_COVER' );
print ( 'Cloud cover ascending' , colCldSortAsc );
// Display the image with the least cloud cover.
var visParams = {
bands : [ 'B4' , 'B3' , 'B2' ],
min : 0.01 ,
max : 0.25
};
Map . setCenter ( - 90.70 , 34.71 , 9 );
Map . addLayer ( colCldSortAsc . first (), visParams , 'Least cloudy' );
// Sort the collection in DESCENDING order of image cloud cover.
var colCldSortDesc = col . sort ( 'CLOUD_COVER' , false );
print ( 'Cloud cover descending' , colCldSortDesc );
// Display the image with the most cloud cover.
Map . addLayer ( colCldSortDesc . first (), visParams , 'Most cloudy' );
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 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' )
)
display ( 'Collection' , col )
# Sort the collection in ASCENDING order of image cloud cover.
col_cld_sort_asc = col . sort ( 'CLOUD_COVER' )
display ( 'Cloud cover ascending' , col_cld_sort_asc )
# Display the image with the least cloud cover.
vis_params = { 'bands' : [ 'B4' , 'B3' , 'B2' ], 'min' : 0.01 , 'max' : 0.25 }
m = geemap . Map ()
m . set_center ( - 90.70 , 34.71 , 9 )
m . add_layer ( col_cld_sort_asc . first (), vis_params , 'Least cloudy' )
# Sort the collection in DESCENDING order of image cloud cover.
col_cld_sort_desc = col . sort ( 'CLOUD_COVER' , False )
display ( 'Cloud cover descending' , col_cld_sort_desc )
# Display the image with the most cloud cover.
m . add_layer ( col_cld_sort_desc . first (), vis_params , 'Most cloudy' )
m
Geri bildirim gönderin
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-07-29 UTC.
Bize geri bildirimde bulunmak mı istiyorsunuz?
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-29 UTC."],[],[]]