ee.Dictionary.aside

تابعی را فراخوانی می کند که این شی را به عنوان اولین آرگومان ارسال می کند و خودش را برمی گرداند. راحت به عنوان مثال هنگام اشکال زدایی:

var c = ee.ImageCollection('foo').aside(print)

.filterDate('2001-01-01', '2002-01-01').aside(print, 'In 2001')

.filterBounds(geom).aside(چاپ، "در منطقه")

.aside(Map.addLayer، {min: 0، حداکثر: 142}، "Filtered")

.select('a', 'b');

همان شی را برای زنجیر کردن برمی‌گرداند.

استفاده برمی گرداند
Dictionary. aside (func, var_args) Computed Object
استدلال تایپ کنید جزئیات
این: computedobject Computed Object نمونه ComputedObject.
func تابع تابع برای فراخوانی.
var_args VarArgs<Object> هر آرگومان اضافی برای ارسال به تابع.

نمونه ها

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

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

// Print a message when constructing the ee.Dictionary.
var eeDict = ee.Dictionary(dict).aside(print, 'ee.Dictionary from an object');

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

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

import ee
import geemap.core as geemap

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

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


def print_dic(dic):
  """Prints the dictionary."""
  print('ee.Dictionary from client-side dictionary:', dic.getInfo())

# Print a message when constructing the ee.Dictionary.
ee_dic = ee.Dictionary(dic).aside(print_dic)