ee.Array.cbrt

요소별로 입력의 세제곱근을 계산합니다.

사용반환 값
Array.cbrt()배열
인수유형세부정보
다음과 같은 경우: input배열입력 배열입니다.

코드 편집기 (JavaScript)

// Requires an explicit PixelType if no data.
print(ee.Array([], ee.PixelType.int8()).cbrt());  // []

print(ee.Array([0]).cbrt());  // [0]
print(ee.Array([27]).cbrt());  // [3]
print(ee.Array([-27]).cbrt());  // -3

print(ee.Array([0, 1, 8, 27]).cbrt());  // [0,1,2,3]
print(ee.Array([[0, 1, 8], [27, 64, 125]]).cbrt());  // [[0,1,2],[3,4,5]]

Python 설정

Python API 및 geemap를 사용한 대화형 개발에 관한 자세한 내용은 Python 환경 페이지를 참고하세요.

import ee
import geemap.core as geemap

Colab (Python)

# Requires an explicit PixelType if no data.
display(ee.Array([], ee.PixelType.int8()).cbrt())  # []

display(ee.Array([0]).cbrt())  # [0]
display(ee.Array([27]).cbrt())  # [3]
display(ee.Array([-27]).cbrt())  # -3

display(ee.Array([0, 1, 8, 27]).cbrt())  # [0, 1, 2, 3]

# [[0, 1, 2], [3, 4, 5]]
display(ee.Array([[0, 1, 8], [27, 64, 125]]).cbrt())