ee.Dictionary.getArray

একটি অভিধান থেকে একটি নামযুক্ত অ্যারের মান বের করে।

ব্যবহার রিটার্নস
Dictionary. getArray (key) অ্যারে
যুক্তি টাইপ বিস্তারিত
এই: dictionary অভিধান
key স্ট্রিং

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

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

print('The "Array" value as an ee.Array object', dict.getArray('Array'));

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

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

print('The "Array" value as an ee.Array object:',
      dic.getArray('Array').getInfo())