sepal-contrib / sdg_15.3.1

monitor SDG indicators at plot level
MIT License
3 stars 3 forks source link

Bypass results visualisation to avoid computation time out error for a large AOI #92

Open i-m-amit opened 2 years ago

i-m-amit commented 2 years ago

Is it a good idea to make maps and graphs optional or release the download button to directly download/export the results?

GEE docs: Exporting allows Earth Engine to perform the computation in an environment with longer allowable running times (but not more memory).

12rambau commented 2 years ago

excellent idea!

I would argue in favor of trying to load them anyway and display an error message if it doesn't work.

I'm a bit afraid that if the graphs don't load it means that the download will fail as well for the exact same reasons right ?

dfguerrerom commented 2 years ago

I'm exactly doing this in the MGCI: if the computation takes more than 5minutes (timed out), then a task is created to GEE, and a file to track it is stored https://github.com/dfguerrerom/sepal_mgci/blob/12eab6a728a07e30d64cc3e88feabf0d2b80fc31/component/tile/dashboard.py#L295.

Later on, the user can use a calculation from task tab, to read and render the result.