Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support larger area queries #195

Open
alee opened this issue Mar 10, 2023 · 2 comments
Open

support larger area queries #195

alee opened this issue Mar 10, 2023 · 2 comments

Comments

@alee
Copy link
Member

alee commented Mar 10, 2023

currently there is a limit to the geographical size https://www.openskope.org/skope-users-guide#study-area-size-limits due to timeouts #42

this is more to do with the number of pixels that are needed from the datacube to process things than the actual geographical square km area, a long thin rectangle would also timeout.

come up with a plan to support larger area queries

this would probably require asynchronous processing / notification changes to https://github.com/openskope/skope-api as well as this repo

related to #186 and openskope/skope-api#39

@kintigh
Copy link

kintigh commented Mar 10, 2023

Allen. I have a distinct memory that sometime in the past, SKOPE was able to run much larger datasets than it can now. As I recall, this was associated with a major rewrite that someone not you (Calvin) was doing. This makes me think that perhaps there is some critical piece of code that got rewritten in a much less efficient manner. I don't think that it was just a longer timeout.

Documentation dated 11/15/2021 (from the wayback machine https://web.archive.org/web/20211201222306/https://www.openskope.org/skope-users-guide) says

For high spatial resolution datasets (such as PaleoCAR), the application will be more responsive for smaller study areas. And, for those datasets, some areas may be too large for SKOPE to process interactively. At present, for PaleoCAR, a maximum area of 5,000 to 20,000km2 (depending on server load) can be computed before the app times out.

This would have been based on some real experiments on my part some time around then. But at some point after than when I did the experiments for the current version, the capacity went down a lot. I do remember that even farther back whebn we were talking about the timeouts you tried changing them but there were some real complications in doing that.

I don't know if this helps. Keith

Current documentation language based on experiments about April 2022

SKOPE’s computation load mainly depends on the size of the smallest rectangle (oriented E-W/N-S) that will enclose the selected area. At present, for PaleoCAR, a maximum area of that rectangle before the app times out is about 5700km2 (e.g. ,a square about 75km on a side or a 38km radius circle). For lower resolution datasets, such as the Living Blended Drought Atlas, there is no practical limit.

@alee
Copy link
Member Author

alee commented Mar 26, 2023

Thanks for the extra context Keith! This is definitely helpful, we'll take a deep dive into the backend performance as well as we look into longer-term solutions for the timeout issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants