aazuspan / sankee

Visualize classified time series data with interactive Sankey plots in Google Earth Engine
https://sankee.readthedocs.io/en/latest/index.html
MIT License
97 stars 15 forks source link

Example not working #43

Closed giswqs closed 1 year ago

giswqs commented 1 year ago

It seems the example no longer works. Getting EEException: Element.propertyNames: Parameter 'element' is required.

import sankee
import ee

ee.Initialize()

sankee.datasets.LCMS_LC.sankify(
  years=[1990, 2000, 2010, 2020],
  region=ee.Geometry.Point([-122.192688, 46.25917]).buffer(2000),
  max_classes=3,
  title="Mt. St. Helens Recovery"
)

image

aazuspan commented 1 year ago

Good catch @giswqs, sankee was still using old LCMS dataset versions which were apparently causing some issues. I just updated the datasets to v2022.8 which seems to resolve this. I'll release those changes shortly.

Thanks for letting me know!

giswqs commented 1 year ago

Thank you for the quick fix.