ee.Dictionary.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');

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

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

코드 편집기 (JavaScript)

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

Python 설정

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

import ee
import geemap.core as geemap

Colab (Python)

# 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)