Wprowadzamy w Earth Engine
poziomy limitów niekomercyjnych , aby chronić współdzielone zasoby obliczeniowe i zapewnić niezawodną wydajność dla wszystkich. We wszystkich projektach niekomercyjnych trzeba będzie wybrać poziom limitu do
27 kwietnia 2026 r. . W przeciwnym razie zostanie im przydzielony poziom Społeczność. Limity poziomu zaczną obowiązywać we wszystkich projektach (niezależnie od daty wyboru poziomu) od
27 kwietnia 2026 r. Więcej informacji
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Prześlij opinię
ee.PixelType
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca typ piksela o podanej precyzji i podanych limitach na element oraz opcjonalnej liczbie wymiarów.
Wykorzystanie Zwroty ee.PixelType(precision, minValue , maxValue , dimensions )PixelType
Argument Typ Szczegóły precisionObiekt Dokładność piksela, jedna z wartości „int”, „float” lub „double”. minValueLiczba, domyślnie: null Minimalna wartość pikseli tego typu. Jeśli precyzja to „float” lub „double”, może to być wartość null, co oznacza nieskończoność ujemną. maxValueLiczba, domyślnie: null Maksymalna wartość pikseli tego typu. Jeśli precyzja to „float” lub „double”, może to być wartość null, co oznacza nieskończoność dodatnią. dimensionsLiczba całkowita, domyślnie: 0 Liczba wymiarów, w których mogą się różnić piksele tego typu. 0 to skalar, 1 to wektor, 2 to macierz itd.
Przykłady
Edytor kodu (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
Konfiguracja Pythona
Informacje o interfejsie Python API i używaniu geemap do interaktywnego programowania znajdziesz na stronie
Środowisko Python .
import ee
import geemap.core as geemap
Colab (Python)
display ( ee . PixelType ( 'int' , 0 , 1 )) # int ∈ [0, 1]
display ( ee . PixelType ( 'int' , - 20 , - 10 )) # int ∈ [-20, -10]
display ( ee . PixelType ( 'float' )) # float
display ( ee . PixelType ( 'double' )) # double
display ( ee . PixelType ( 'double' , None )) # double
display ( ee . PixelType ( 'double' , None , None )) # double
display ( ee . PixelType ( 'double' , None , None , 0 )) # double
display ( ee . PixelType ( 'double' , None , None , 1 )) # double, 1 dimensions
display ( ee . PixelType ( 'double' , None , None , 2 )) # double, 2 dimensions
display ( ee . PixelType ( 'double' , None , None , 3 )) # double, 3 dimensions
display ( ee . PixelType ( 'double' , None , None , 10 )) # double, 10 dimensions
# double, 100000000 dimensions
display ( ee . PixelType ( 'double' , None , None , 1e8 ))
display ( ee . PixelType ( 'double' , 1 , 2 , 0 )) # double ∈ [1, 2]
# double ∈ [1, 3], 2 dimensions
display ( ee . PixelType ( 'double' , 1 , 3 , 2 ))
display ( ee . PixelType ( 'double' , - 4 , - 3 , 0 )) # double ∈ [-4, -3]
display ( ee . PixelType ( 'double' , None , 2.3 , 0 )) # double
display ( ee . PixelType ( 'double' , 3.4 , None , 0 )) # double
Prześlij opinię
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0 , a fragmenty kodu są dostępne na licencji Apache 2.0 . Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers . Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-10-30 UTC.
Chcesz przekazać coś jeszcze?
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-10-30 UTC."],[],[]]