ee.ErrorMargin

यह फ़ंक्शन, दी गई वैल्यू के साथ दिए गए टाइप का ErrorMargin दिखाता है.

इस्तेमालरिटर्न
ee.ErrorMargin(value, unit)ErrorMargin
आर्ग्यूमेंटटाइपविवरण
valueफ़्लोट, डिफ़ॉल्ट: nullमार्जिन के हिसाब से गड़बड़ी की ज़्यादा से ज़्यादा वैल्यू. अगर यूनिट 'infinite' है, तो इस पर ध्यान न दें.
unitस्ट्रिंग, डिफ़ॉल्ट: "meters"इस मार्जिन की यूनिट: 'मीटर', 'प्रोजेक्टेड' या 'इनफ़िनिट'.

उदाहरण

कोड एडिटर (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