ee.Number.bitwiseOr

Calcula a bit a bit OU dos valores de entrada.

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

Exemplos

Editor de código (JavaScript)

/**
 * Unsigned 8-bit type example.
 *
 * 25 as binary:    00011001
 * 21 as binary:    00010101
 * Either digit 1?: 00011101
 *
 * 00011101 is unsigned 8-bit binary for 29.
 */

print(ee.Number(25).bitwiseOr(21));

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)

"""Unsigned 8-bit type example.

25 as binary:    00011001
21 as binary:    00010101
Either digit 1?: 00011101

00011101 is unsigned 8-bit binary for 29.
"""

print(ee.Number(25).bitwiseOr(21).getInfo())