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

throttling technique for data cube (space + time) requests #5

Open
bbest opened this issue Jul 20, 2023 · 4 comments
Open

throttling technique for data cube (space + time) requests #5

bbest opened this issue Jul 20, 2023 · 4 comments

Comments

@bbest
Copy link
Contributor

bbest commented Jul 20, 2023

ERDDAP servers have limits. Ideally, we have a simple threshold like max_points = 1,000,000, and then the metadata for the gridded dataset gets interrogated so we:

  1. Create the bbox grid: n_points_grid
  2. Time slices requested based date_beg, date end and given the dataset's frequency: n_slices_time
  3. Batch the rerddap::griddap() requests based on n_batches = n_points_grid * n_slices_time %/% max_points + 1 (assuming a remainder)
@bbest
Copy link
Contributor Author

bbest commented Jul 20, 2023

Coral Reef Watch (CRW) is a good test case b/c has daily data

@bbest
Copy link
Contributor Author

bbest commented Jul 20, 2023

For n_points_grid, see generation of r_template in #3

@bbest
Copy link
Contributor Author

bbest commented Dec 19, 2023

Let's try this new data cube throttling approach with this salinity dataset having x,y,z,t dimensions:

bbest added a commit that referenced this issue Dec 19, 2023
bbest added a commit that referenced this issue Mar 2, 2024
@7yl4r
Copy link
Member

7yl4r commented Jul 1, 2024

Hi Ben, I know things are already well along but I came across Roy Mendleson's script griddap_split and I wonder if there is anything there worth copying over here or vice-versa?

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

No branches or pull requests

2 participants