ee.Dictionary.set

یک مقدار را در فرهنگ لغت تنظیم کنید.

استفاده برمی گرداند
Dictionary. set (key, value) فرهنگ لغت
استدلال تایپ کنید جزئیات
این: dictionary فرهنگ لغت
key رشته
value شیء

نمونه ها

ویرایشگر کد (جاوا اسکریپت)

// A dictionary (e.g. results of ee.Image.reduceRegion of an S2 image).
var dict = ee.Dictionary({
  B1: 182,
  B2: 219,
  B3: 443
});

print('Set value for B3 key as -9999', dict.set('B3', -9999));

راه اندازی پایتون

برای اطلاعات در مورد API پایتون و استفاده از geemap برای توسعه تعاملی به صفحه محیط پایتون مراجعه کنید.

import ee
import geemap.core as geemap

کولب (پایتون)

# A dictionary (e.g. results of ee.Image.reduceRegion of an S2 image).
dic = ee.Dictionary({
    'B1': 182,
    'B2': 219,
    'B3': 443
})

print('Set value for B3 key as -9999:', dic.set('B3', -9999).getInfo())