Converting Earth Engine dataset into XArray #1942
-
Hi guys, I got an error message like this: I already searched the solutions on the internet or used Github Copilot to solve this issue, but the problem is still there. Note:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You need to specify the |
Beta Was this translation helpful? Give feedback.
-
Hi, I hope is possible to follow up on this question. I tried to implement MODIS EVI but the clipping doesn't work for the ROI, giving back the whole world. Is possible that ee_to_xarray() is not working properly for that dataset? I tried with two MODIS collections and is the same result. Here the code: `def calculate_MODIS_EVI1(image):
def calculate_MODIS_EVI2(image): modis_collection1 = (ee.ImageCollection('MODIS/006/MCD43A4') modis_collection2 = (ee.ImageCollection('MODIS/006/MOD13Q1') evi_image = modis_collection1.map(calculate_MODIS_EVI1) #or evi_selected = evi_image.select('EVI') evi_array1 = geemap.ee_to_xarray(evi_image, crs="EPSG:4326", geometry=modis_collection1.first().geometry()) In both the result is as follows: <bound method Mapping.values of <xarray.Dataset> Size: 949MB
|
Beta Was this translation helpful? Give feedback.
You need to specify the
geometry
parameter, like this: