You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I have been facing a problem when running the snippet of code below in Google Colab. The code uses the Datacube module from odc_gee package.
!wget-nchttps://raw.githubusercontent.com/ceos-seo/odc-colab/master/odc_colab.pyfromodc_colabimportodc_colab_initodc_colab_init(install_odc_gee=True)
fromodc_colabimportpopulate_dbpopulate_db()
fromodc_gee.earthengineimportDatacubedc=Datacube(app='ESA_WorldCover')
product='esa_worldcover_google'# Kumasi, Ghana lat_long= (6.7, -1.6)
box_size_deg=0.50# Calculates the latitude and longitude bounds of the analysis boxlatitude= (lat_long[0]-box_size_deg/2, lat_long[0]+box_size_deg/2)
longitude= (lat_long[1]-box_size_deg/2, lat_long[1]+box_size_deg/2)
dataset=dc.load(product=product,time=time,latitude=latitude,longitude=longitude)
After installing required packages, modules and successful authorization at Earth Engine, I run into the following error message after executing las line of code:
/usr/local/lib/python3.10/dist-packages/datacube/utils/geometry/_base.py:519: ShapelyDeprecationWarning: The 'type' attribute is deprecated, and will be removed in the future. You can use the 'geom_type' attribute instead.
return self.geom.type
/usr/local/lib/python3.10/dist-packages/odc_gee/earthengine.py in find_datasets(self, limit, **search_terms)
119 if hasattr(query, 'asset'):
120 images = self.get_images(self.build_parameters(query))
--> 121 for document in generate_documents(query.asset, images, query.product):
122 if limit != 0:
123 limit = limit - 1 if limit is not None else limit
/usr/local/lib/python3.10/dist-packages/odc_gee/earthengine.py in generate_documents(asset, images, product)
295 from datacube.index.hl import prep_eo3
296 from odc_gee.indexing import make_metadata_doc
--> 297 for image in images:
298 yield prep_eo3(make_metadata_doc(asset, image, product))
299
Thank you for the error report (and for including the traceback). The problem isn't on your end, it's a change in the EarthEngine API. We're aware of the issue and are working on updates to address these breaking changes.
Recently I have been facing a problem when running the snippet of code below in Google Colab. The code uses the Datacube module from odc_gee package.
After installing required packages, modules and successful authorization at Earth Engine, I run into the following error message after executing las line of code:
What could be the problem?
The text was updated successfully, but these errors were encountered: