Ogłoszenie:  wszystkie projekty niekomercyjne zarejestrowane do korzystania z Earth Engine przed 
15 kwietnia 2025 r. muszą 
potwierdzić spełnianie warunków użycia niekomercyjnego, aby zachować dostęp. Jeśli nie przejdziesz weryfikacji do 26 września 2025 r., Twój dostęp może zostać wstrzymany.
  
        
 
       
     
  
  
  
    
  
  
  
    
      ee.Array.ceil
    
    
      
    
    
      
      Zadbaj o dobrą organizację dzięki kolekcji
    
    
      
      Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
  
  
Oblicza najmniejszą liczbę całkowitą większą lub równą danym wejściowym dla każdego elementu.
| Wykorzystanie | Zwroty | 
|---|
| Array.ceil() | Tablica | 
| Argument | Typ | Szczegóły | 
|---|
| to: input | Tablica | Tablica wejściowa. | 
  
  
  Przykłady
  
    
  
  
    
    
  
  
  
  
    
    
    
      Edytor kodu (JavaScript)
    
    
  // Requires an explicit PixelType if no data.
print(ee.Array([], ee.PixelType.int8()).ceil());  // []
print(ee.Array([-1.1]).ceil());  // [-1]
print(ee.Array([-0.1]).ceil());  // [0]
print(ee.Array([0]).ceil());  // [0]
print(ee.Array([0.1]).ceil());  // [1]
print(ee.Array([1.1]).ceil());  // [2]
  
    
  
  
    
  
  
  
  
    
  
    
  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)
    
    
  # Requires an explicit PixelType if no data.
display(ee.Array([], ee.PixelType.int8()).ceil())  # []
display(ee.Array([-1.1]).ceil())  # [-1]
display(ee.Array([-0.1]).ceil())  # [0]
display(ee.Array([0]).ceil())  # [0]
display(ee.Array([0.1]).ceil())  # [1]
display(ee.Array([1.1]).ceil())  # [2]
  
  
  
  
  
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-07-26 UTC.
  
  
  
    
      [null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],["The `ceil()` method computes the ceiling of each element in an input array, returning a new array. The function determines the smallest integer greater than or equal to each input element. It operates element-wise. If the input array is empty, an explicit PixelType is required. The input array can contain positive and negative numbers, as shown with the provided examples. `Array.ceil()` method returns a new Array.\n"]]