ee.String.aside

প্রথম আর্গুমেন্ট হিসাবে এই অবজেক্টটি পাস করা একটি ফাংশনকে কল করে এবং নিজেই ফিরে আসে। সুবিধাজনক যেমন ডিবাগ করার সময়:

var c = ee.Image Collection('foo').aside(print)

.filterDate('2001-01-01', '2002-01-01')।একপাশে (মুদ্রণ, '2001 সালে')

.filterBounds(geom)।একপাশে (মুদ্রণ, 'অঞ্চলে')

.aside(Map.addLayer, {মিনিট: 0, সর্বোচ্চ: 142}, 'ফিল্টার করা')

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

চেইনিংয়ের জন্য একই বস্তু ফেরত দেয়।

ব্যবহার রিটার্নস
String. aside (func, var_args) কম্পিউটেড অবজেক্ট
যুক্তি টাইপ বিস্তারিত
এই: computedobject কম্পিউটেড অবজেক্ট ComputedObject উদাহরণ.
func ফাংশন কল করার ফাংশন।
var_args VarArgs<অবজেক্ট> কোন অতিরিক্ত আর্গুমেন্ট ফাংশন পাস.

উদাহরণ

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

// aside with no var_args.
// a
ee.String('a').aside(print);

// foo
// bar
ee.String('foo').aside(print, 'bar');

// foo
// bar
//
// foo
print(ee.String('foo').aside(print, 'bar'));

// aside in the middle of a chain of calls.
// a
// b
//
// ac
print(ee.String('a').aside(print, 'b').cat('c'));

// aside with more than one var_args.
// a
// 1
// 2
ee.String('a').aside(print, 1, 2);

// Print a empty JSON string.
// ''
ee.String('').aside(print);

পাইথন সেটআপ

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

import ee
import geemap.core as geemap

Colab (পাইথন)

def print_result(val, *params):
  """A print function to invoke with the aside method."""
  print(val.getInfo())
  for param in params:
    print(param)


# aside with no var_args.
# a
ee.String('a').aside(print_result)

# foo
# bar
ee.String('foo').aside(print_result, 'bar')

# foo
# bar
#
# foo
print(ee.String('foo').aside(print_result, 'bar').getInfo())

# aside in the middle of a chain of calls.
# a
# b
#
# ac
print(ee.String('a').aside(print_result, 'b').cat('c').getInfo())

# aside with more than one var_args.
# a
# 1
# 2
ee.String('a').aside(print_result, 1, 2)

# Print a empty JSON string.
# ''
ee.String('').aside(print_result)