ee.String.aside

이 객체를 첫 번째 인수로 전달하고 자체를 반환하는 함수를 호출합니다. 디버깅 시 편리합니다.

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

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

.filterBounds(geom).aside(print, 'In region')

.aside(Map.addLayer, {min: 0, max: 142}, 'Filtered')

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

연결을 위해 동일한 객체를 반환합니다.

사용반환 값
String.aside(func, var_args)ComputedObject
인수유형세부정보
다음과 같은 경우: computedobjectComputedObjectComputedObject 인스턴스입니다.
func함수호출할 함수입니다.
var_argsVarArgs<Object>함수에 전달할 추가 인수입니다.

코드 편집기 (JavaScript)

// 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);

Python 설정

Python API 및 geemap를 사용한 대화형 개발에 관한 자세한 내용은 Python 환경 페이지를 참고하세요.

import ee
import geemap.core as geemap

Colab (Python)

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)