ee.Dictionary.serialize

このオブジェクトのシリアル化された表現を返します。

用途戻り値
Dictionary.serialize(legacy)文字列
引数タイプ詳細
これ: computedobjectComputedObjectComputedObject インスタンス。
legacyブール値、省略可以前の形式を有効にします。

コードエディタ(JavaScript)

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

print('Serialized representation of ee.Dictionary', dict.serialize());

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 = ee.Dictionary({
    'B1': 182,
    'B2': 219,
    'B3': 443
})

print('Serialized representation of ee.Dictionary:', dic.serialize(), sep='\n')