0

The documentation for GEE Kernels states that, " If the kernel is specified in meters, it will resize when the zoom-level is changed." If I am using the python API, however, what is the default zoom-level? And how do I change it?

An example code segment might look something like this

kernel = ee.Kernel.euclidean(150000,"meters")
distance = mangrove_map.distance(kernel,false)
reducers = ee.Reducer.mean()
    stats = distance.reduceRegions(
              collection=CensusSectors_aoi,
              reducer=reducers,
              scale=600
              );

Where distance is some image and CensusSectors_aoi is some feature collection.

0

1 Answer 1

1

“Zoom level” is a description that makes the most sense when you're viewing an interactive map. But it's just another perspective on the fundamental concept which is the requested pixel resolution of the image.

For example, if you've specified 600 nominal meters per pixel in reduceRegions(). Thus, if the kernel were used in that image, it would be

(150,000 meters) / (600 meters per pixel) = 250 pixels

in radius.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.