ee.ErrorMargin

지정된 값으로 지정된 유형의 ErrorMargin을 반환합니다.

사용반환 값
ee.ErrorMargin(value, unit)ErrorMargin
인수유형세부정보
value부동 소수점 수, 기본값: null여백에 의해 허용되는 최대 오류 값입니다. 단위가 'infinite'인 경우 무시됩니다.
unit문자열, 기본값: 'meters'이 여백의 단위입니다('meters', 'projected', 'infinite').

코드 편집기 (JavaScript)

// Construct a variety of error margins.
print(ee.ErrorMargin(0));  // unit: meters value: 0
print(ee.ErrorMargin(1));  // unit: meters value: 1
// Negative margin yields a positive value.
print(ee.ErrorMargin(-1));  // unit: meters value: 1
// Large values are turned into an 'infinite'
print(ee.ErrorMargin(1e8));  // unit: infinite
// A very large error margin does not quite trigger infinite, which is 2.0e7.
print(ee.ErrorMargin(1e7));  // unit: meters value: 10000000

// Being explicit about the units of the error margin.
print(ee.ErrorMargin(1, 'meters'));  // unit: meters value: 1
print(ee.ErrorMargin(1, 'projected'));  // unit: projected value: 1
print(ee.ErrorMargin(1, 'infinite'));  // unit: infinite

Python 설정

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

import ee
import geemap.core as geemap

Colab (Python)

# Construct a variety of error margins.
print(ee.ErrorMargin(0).getInfo())  # unit: meters value: 0
print(ee.ErrorMargin(1).getInfo())  # unit: meters value: 1
# Negative margin yields a positive value.
print(ee.ErrorMargin(-1).getInfo())  # unit: meters value: 1
# Large values are turned into an 'infinite'
print(ee.ErrorMargin(1e8).getInfo())  # unit: infinite
# A very large error margin does not quite trigger infinite, which is 2.0e7.
print(ee.ErrorMargin(1e7).getInfo())  # unit: meters value: 10000000

# Being explicit about the units of the error margin.
print(ee.ErrorMargin(1, 'meters').getInfo())  # unit: meters value: 1
print(ee.ErrorMargin(1, 'projected').getInfo())  # unit: projected value: 1
print(ee.ErrorMargin(1, 'infinite').getInfo())  # unit: infinite