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.PixelType
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Belirtilen hassasiyette, öğe başına belirtilen sınırlara sahip ve isteğe bağlı olarak boyutluluk içeren bir PixelType döndürür.
Kullanım İadeler ee.PixelType(precision, minValue , maxValue , dimensions )
PixelType
Bağımsız Değişken Tür Ayrıntılar precision
Nesne Piksel kesinliği ("int", "float" veya "double" değerlerinden biri). minValue
Sayı, varsayılan: null Bu tür piksellerin minimum değeri. Kesinlik "float" veya "double" ise bu değer boş olabilir ve negatif sonsuzluğu ifade eder. maxValue
Sayı, varsayılan: null Bu türdeki piksellerin maksimum değeri. Hassasiyet "float" veya "double" ise bu değer, pozitif sonsuzluğu ifade eden null olabilir. dimensions
Tamsayı, varsayılan: 0 Bu tür piksellerin değişebileceği boyut sayısı. 0, skaler; 1, vektör; 2, matris vb.
Örnekler
Kod Düzenleyici (JavaScript)
print ( ee . PixelType ( 'int' , 0 , 1 )); // int ∈ [0, 1]
print ( ee . PixelType ( 'int' , - 20 , - 10 )); // int ∈ [-20, -10]
print ( ee . PixelType ( 'float' )); // float
print ( ee . PixelType ( 'double' )); // double
print ( ee . PixelType ( 'double' , null )); // double
print ( ee . PixelType ( 'double' , null , null )); // double
print ( ee . PixelType ( 'double' , null , null , 0 )); // double
print ( ee . PixelType ( 'double' , null , null , 1 )); // double, 1 dimensions
print ( ee . PixelType ( 'double' , null , null , 2 )); // double, 2 dimensions
print ( ee . PixelType ( 'double' , null , null , 3 )); // double, 3 dimensions
print ( ee . PixelType ( 'double' , null , null , 10 )); // double, 10 dimensions
print ( ee . PixelType ( 'double' , null , null , 1e8 )); // double, 100000000 dimensions
print ( ee . PixelType ( 'double' , 1 , 2 , 0 )); // double ∈ [1, 2]
print ( ee . PixelType ( 'double' , 1 , 3 , 2 )); // double ∈ [1, 3], 2 dimensions
print ( ee . PixelType ( 'double' , - 4 , - 3 , 0 )); // double ∈ [-4, -3]
print ( ee . PixelType ( 'double' , null , 2.3 , 0 )); // double
print ( ee . PixelType ( 'double' , 3.4 , null , 0 )); // double
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)
print ( ee . PixelType ( 'int' , 0 , 1 ) . getInfo ()) # int ∈ [0, 1]
print ( ee . PixelType ( 'int' , - 20 , - 10 ) . getInfo ()) # int ∈ [-20, -10]
print ( ee . PixelType ( 'float' ) . getInfo ()) # float
print ( ee . PixelType ( 'double' ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , None ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , None , None ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , None , None , 0 ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , None , None , 1 ) . getInfo ()) # double, 1 dimensions
print ( ee . PixelType ( 'double' , None , None , 2 ) . getInfo ()) # double, 2 dimensions
print ( ee . PixelType ( 'double' , None , None , 3 ) . getInfo ()) # double, 3 dimensions
print ( ee . PixelType ( 'double' , None , None , 10 ) . getInfo ()) # double, 10 dimensions
# double, 100000000 dimensions
print ( ee . PixelType ( 'double' , None , None , 1e8 ) . getInfo ())
print ( ee . PixelType ( 'double' , 1 , 2 , 0 ) . getInfo ()) # double ∈ [1, 2]
# double ∈ [1, 3], 2 dimensions
print ( ee . PixelType ( 'double' , 1 , 3 , 2 ) . getInfo ())
print ( ee . PixelType ( 'double' , - 4 , - 3 , 0 ) . getInfo ()) # double ∈ [-4, -3]
print ( ee . PixelType ( 'double' , None , 2.3 , 0 ) . getInfo ()) # double
print ( ee . PixelType ( 'double' , 3.4 , None , 0 ) . getInfo ()) # double
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-26 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-26 UTC."],[],[]]