EEException: A mapped function's arguments cannot be used in client-side operations #1788
-
Hi, Here is the code: start_date = '2021-01-01' region = ee.Geometry.Rectangle([-122.44, 37.74, -122.13, 37.97]) image_collection = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA') .filterBounds(region) .filterDate(start_date, end_date) bands_to_extract = ['B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7'] def extract_image_values(image): bands_data = image_collection.map(extract_image_values) numpy_array = np.array(bands_data.toList(image_collection.size()).getInfo()) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can't use |
Beta Was this translation helpful? Give feedback.
You can't use
.getInfo()
within the map function. Check out xee