var c = ee.Image Collection('foo').aside(print)
.filterDate('2001-01-01', '2002-01-01').aside(মুদ্রিত, '2001 সালে')
.filterBounds(geom).aside(মুদ্রণ করুন, 'অঞ্চলে')
.aside(Map.addLayer, {সর্বনিম্ন: 0, সর্বোচ্চ: 142}, 'ফিল্টার করা')
.select('a', 'b');
চেইনিংয়ের জন্য একই বস্তুটি ফেরত দেয়।
| ব্যবহার | রিটার্নস |
|---|---|
String. aside (func, var_args) | কম্পিউটেড অবজেক্ট |
| যুক্তি | আদর্শ | বিস্তারিত |
|---|---|---|
এটি: 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);
import ee import geemap.core as geemap
কোলাব (পাইথন)
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)