ee.Number.and

Retorna 1 se e somente se os dois valores forem diferentes de zero.

UsoRetorna
Number.and(right)Número
ArgumentoTipoDetalhes
isso: leftNúmeroO valor à esquerda.
rightNúmeroO valor à direita.

Exemplos

Editor de código (JavaScript)

print('Both 5 and 10 are not 0?', ee.Number(5).and(ee.Number(10)));  // 1
print('Both 5 and 0 are not 0?', ee.Number(5).and(ee.Number(0)));  // 0

Configuração do Python

Consulte a página Ambiente Python para informações sobre a API Python e como usar geemap para desenvolvimento interativo.

import ee
import geemap.core as geemap

Colab (Python)

# 1
print('Both 5 and 10 are not 0?', ee.Number(5).And(ee.Number(10)).getInfo())
# 0
print('Both 5 and 0 are not 0?', ee.Number(5).And(ee.Number(0)).getInfo())