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

Method square

python/ee/kernel.py:455–474  ·  view source on GitHub ↗

Returns a square-shaped boolean kernel. Args: radius: The radius of the kernel to generate. units: The system of measurement for the kernel ('pixels' or 'meters'). If the kernel is specified in meters, it will resize when the zoom-level is changed. normalize: N

(
      radius: _arg_types.Number,
      units: _arg_types.String | None = None,
      normalize: _arg_types.Bool | None = None,
      magnitude: _arg_types.Number | None = None,
  )

Source from the content-addressed store, hash-verified

453
454 @staticmethod
455 def square(
456 radius: _arg_types.Number,
457 units: _arg_types.String | None = None,
458 normalize: _arg_types.Bool | None = None,
459 magnitude: _arg_types.Number | None = None,
460 ) -> Kernel:
461 """Returns a square-shaped boolean kernel.
462
463 Args:
464 radius: The radius of the kernel to generate.
465 units: The system of measurement for the kernel ('pixels' or 'meters'). If
466 the kernel is specified in meters, it will resize when the zoom-level is
467 changed.
468 normalize: Normalize the kernel values to sum to 1.
469 magnitude: Scale each value by this amount.
470 """
471
472 return apifunction.ApiFunction.call_(
473 'Kernel.square', radius, units, normalize, magnitude
474 )

Callers 15

test_convolveMethod · 0.80
test_distanceMethod · 0.80
test_entropyMethod · 0.80
test_focal_maxMethod · 0.80
test_focal_meanMethod · 0.80
test_focal_medianMethod · 0.80
test_focal_minMethod · 0.80
test_focal_modeMethod · 0.80
test_glcm_textureMethod · 0.80

Calls 1

call_Method · 0.80

Tested by 15

test_convolveMethod · 0.64
test_distanceMethod · 0.64
test_entropyMethod · 0.64
test_focal_maxMethod · 0.64
test_focal_meanMethod · 0.64
test_focal_medianMethod · 0.64
test_focal_minMethod · 0.64
test_focal_modeMethod · 0.64
test_glcm_textureMethod · 0.64