お知らせ :
2025 年 4 月 15 日 より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、アクセスを維持するために
非商用目的での利用資格を確認 する必要があります。2025 年 9 月 26 日までに確認が完了していない場合、アクセスが保留されることがあります。
フィードバックを送信
ee.Image.add
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
image1 と image2 の一致するバンドのペアごとに、最初の値を 2 番目の値に追加します。image1 または image2 のいずれかに 1 つのバンドしかない場合、そのバンドはもう一方の画像のすべてのバンドに対して使用されます。画像のバンド数が同じで、名前が異なる場合は、自然な順序でペアで使用されます。出力バンドには、2 つの入力のうち長い方の名前が付けられます。長さが同じ場合は、image1 の順序で名前が付けられます。出力ピクセルの型は、入力型の和集合です。
引数 タイプ 詳細 これ: image1
画像 左オペランドのバンドが取得される画像。 image2
画像 右オペランド バンドが取得される画像。
例
コードエディタ(JavaScript)
// A Sentinel-2 surface reflectance image.
var img = ee . Image ( 'COPERNICUS/S2_SR/20210109T185751_20210109T185931_T10SEG' );
// Subset two image bands and display them on the map.
var swir1 = img . select ( 'B11' );
var swir2 = img . select ( 'B12' );
Map . setCenter ( - 122.276 , 37.456 , 12 );
Map . addLayer ( swir1 , { min : 0 , max : 3000 }, 'swir1' );
Map . addLayer ( swir2 , { min : 0 , max : 3000 }, 'swir2' );
// The following examples demonstrate ee.Image arithmetic methods using two
// single-band ee.Image inputs.
var addition = swir1 . add ( swir2 );
Map . addLayer ( addition , { min : 100 , max : 6000 }, 'addition' );
var subtraction = swir1 . subtract ( swir2 );
Map . addLayer ( subtraction , { min : 0 , max : 1500 }, 'subtraction' );
var multiplication = swir1 . multiply ( swir2 );
Map . addLayer ( multiplication , { min : 1.9e5 , max : 9.4e6 }, 'multiplication' );
var division = swir1 . divide ( swir2 );
Map . addLayer ( division , { min : 0 , max : 3 }, 'division' );
var remainder = swir1 . mod ( swir2 );
Map . addLayer ( remainder , { min : 0 , max : 1500 }, 'remainder' );
// If a number input is provided as the second argument, it will automatically
// be promoted to an ee.Image object, a convenient shorthand for constants.
var exponent = swir1 . pow ( 3 );
Map . addLayer ( exponent , { min : 0 , max : 2e10 }, 'exponent' );
Python の設定
Python API とインタラクティブな開発での geemap
の使用については、
Python 環境 のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
# A Sentinel-2 surface reflectance image.
img = ee . Image ( 'COPERNICUS/S2_SR/20210109T185751_20210109T185931_T10SEG' )
# Subset two image bands and display them on the map.
swir_1 = img . select ( 'B11' )
swir_2 = img . select ( 'B12' )
m = geemap . Map ()
m . set_center ( - 122.276 , 37.456 , 12 )
m . add_layer ( swir_1 , { 'min' : 0 , 'max' : 3000 }, 'swir_1' )
m . add_layer ( swir_2 , { 'min' : 0 , 'max' : 3000 }, 'swir_2' )
# The following examples demonstrate ee.Image arithmetic methods using two
# single-band ee.Image inputs.
addition = swir_1 . add ( swir_2 )
m . add_layer ( addition , { 'min' : 100 , 'max' : 6000 }, 'addition' )
subtraction = swir_1 . subtract ( swir_2 )
m . add_layer ( subtraction , { 'min' : 0 , 'max' : 1500 }, 'subtraction' )
multiplication = swir_1 . multiply ( swir_2 )
m . add_layer ( multiplication , { 'min' : 1.9e5 , 'max' : 9.4e6 }, 'multiplication' )
division = swir_1 . divide ( swir_2 )
m . add_layer ( division , { 'min' : 0 , 'max' : 3 }, 'division' )
remainder = swir_1 . mod ( swir_2 )
m . add_layer ( remainder , { 'min' : 0 , 'max' : 1500 }, 'remainder' )
# If a number input is provided as the second argument, it will automatically
# be promoted to an ee.Image object, a convenient shorthand for constants.
exponent = swir_1 . pow ( 3 )
m . add_layer ( exponent , { 'min' : 0 , 'max' : 2e10 }, 'exponent' )
m
フィードバックを送信
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンス により使用許諾されます。コードサンプルは Apache 2.0 ライセンス により使用許諾されます。詳しくは、Google Developers サイトのポリシー をご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
ご意見をお聞かせください
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-26 UTC。"],[],["The `add()` method combines two images by adding corresponding band values. If one image has a single band, it's applied to all bands of the other. When both images have multiple bands with different names, bands are added pairwise. Output band names are taken from the longer input image, or the first if they are equal in length, with output pixel type being the union of the two inputs.\n"]]