MCPcopy
hub / github.com/google/earthengine-api / bitsToArray

Method bitsToArray

python/ee/ee_array.py:194–204  ·  view source on GitHub ↗

Returns an Array from the bits of an integer. The array has as many elements as the position of the highest set bit, or a single 0 for a value of 0. Args: input: The integer to transform.

(input: _arg_types.Integer)

Source from the content-addressed store, hash-verified

192 @staticmethod
193 # pylint: disable-next=redefined-builtin
194 def bitsToArray(input: _arg_types.Integer) -> Array:
195 """Returns an Array from the bits of an integer.
196
197 The array has as many elements as the position of the highest set bit, or a
198 single 0 for a value of 0.
199
200 Args:
201 input: The integer to transform.
202 """
203
204 return apifunction.ApiFunction.call_('Array.bitsToArray', input)
205
206 def bitwiseAnd(self, right: _arg_types.Array) -> Array:
207 """On an element-wise basis, calculates the bitwise AND of the input values.

Callers 1

test_bits_to_arrayMethod · 0.80

Calls 1

call_Method · 0.80

Tested by 1

test_bits_to_arrayMethod · 0.64