ee.Number.not

入力が 0 以外の場合は 0 を返し、それ以外の場合は 1 を返します。

用途戻り値
Number.not()数値
引数タイプ詳細
これ: input数値入力値。

コードエディタ(JavaScript)

print('Value is not 0', ee.Number(5).not());  // 0
print('Value is 0', ee.Number(0).not());  // 1

Python の設定

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

import ee
import geemap.core as geemap

Colab(Python)

print('Value is not 0:', ee.Number(5).Not().getInfo())  # 0
print('Value is 0:', ee.Number(0).Not().getInfo())  # 1