ee.Image.gt

image1 と image2 の一致するバンドのペアごとに、最初の値が 2 番目の値より大きい場合にのみ 1 を返します。image1 または image2 のいずれかに 1 つのバンドしかない場合、そのバンドはもう一方の画像のすべてのバンドに対して使用されます。画像のバンド数が同じで、名前が異なる場合は、自然な順序でペアで使用されます。出力バンドには、2 つの入力のうち長い方の名前が付けられます。長さが同じ場合は、image1 の順序で名前が付けられます。出力ピクセルの型はブール値です。

用途戻り値
Image.gt(image2)画像
引数タイプ詳細
これ: image1画像左オペランドのバンドが取得される画像。
image2画像右オペランド バンドが取得される画像。

コードエディタ(JavaScript)

// Show world oceans in blue and anything higher than the ellipsoid as gray.
// The bedrock layer is generally close to the geoid (sealevel).
var elevation = ee.Image('NOAA/NGDC/ETOPO1').select('bedrock');
var waterLand = elevation.gt(0.0);
var waterLandViz = {palette: ['cadetblue', 'lightgray']};
Map.addLayer(waterLand, waterLandViz, 'water_land');

Python の設定

Python API とインタラクティブな開発での geemap の使用については、 Python 環境のページをご覧ください。

import ee
import geemap.core as geemap

Colab(Python)

# Show world oceans in blue and anything higher than the ellipsoid as gray.
# The bedrock layer is generally close to the geoid (sealevel).
elevation = ee.Image('NOAA/NGDC/ETOPO1').select('bedrock')
water_land = elevation.gt(0.0)
water_land_viz = {'palette': ['cadetblue', 'lightgray']}
m = geemap.Map()
m.add_layer(water_land, water_land_viz, 'water_land')
m