ee.Dictionary.values

একটি তালিকা হিসাবে একটি অভিধানের মান প্রদান করে। কোনো কী নির্দিষ্ট না থাকলে, অভিধানের কীগুলির স্বাভাবিক ক্রমানুসারে সমস্ত মান ফেরত দেওয়া হয়।

ব্যবহার রিটার্নস
Dictionary. values ( keys ) তালিকা
যুক্তি টাইপ বিস্তারিত
এই: dictionary অভিধান
keys তালিকা, ডিফল্ট: নাল

উদাহরণ

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

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

print('Values for selected keys converted to ee.List',
      dict.values(['B1', 'B2']));
print('Values for all keys converted to ee.List', dict.values());

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য 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
})

print('Values for selected keys converted to ee.List:',
      dic.values(['B1', 'B2']).getInfo())
print('Values for all keys converted to ee.List:', dic.values().getInfo())