ee.Dictionary.evaluate

অ্যাসিঙ্ক্রোনাসভাবে সার্ভার থেকে এই বস্তুর মান পুনরুদ্ধার করে এবং এটি প্রদত্ত কলব্যাক ফাংশনে প্রেরণ করে।

ব্যবহার রিটার্নস
Dictionary. evaluate (callback)
যুক্তি টাইপ বিস্তারিত
এই: computedobject কম্পিউটেড অবজেক্ট ComputedObject উদাহরণ.
callback ফাংশন ফর্ম ফাংশনের একটি ফাংশন (সফলতা, ব্যর্থতা), যখন সার্ভার উত্তর দেয় তখন বলা হয়। অনুরোধ সফল হলে, সাফল্যের যুক্তিতে মূল্যায়ন করা ফলাফল থাকে। অনুরোধ ব্যর্থ হলে, ব্যর্থতার যুক্তিতে একটি ত্রুটি বার্তা থাকবে।

উদাহরণ

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

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

// Use evaluate to transfer server-side dictionary to the client.
dictServer.evaluate(function(dictClient) {
  print('Client-side dot notation to access "B1" value', dictClient.B1);
  print('Client-side bracket notation to access "B1" value', dictClient['B1']);

  print('Client-side operations to print all key-value pairs');
  Object.keys(dictClient).forEach(function(key) {
    print('    ' + key + ': ' + dictClient[key]);
  });
});

পাইথন সেটআপ

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

import ee
import geemap.core as geemap

Colab (পাইথন)

# The Earth Engine Python client library does not have an evaluate method for
# asynchronous evaluation of ee.Dictionary objects.
# Use ee.Dictionary.getInfo() instead.