Skip to content

Commit

Permalink
New limit seems to be 500
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Jul 19, 2022
1 parent de3f1e1 commit 5e099fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions satip/eumetsat.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,21 @@ def identify_available_datasets(
if log:
log.info(f"Found {len(num_total_results)} EUMETSAT dataset files")

if num_total_results < 10_000:
if num_total_results < 500:
return r_json["features"]

datasets = r_json["features"]

# need to loop in batches of 10_000 until all results are found
extra_loops_needed = num_total_results // 10_000
extra_loops_needed = num_total_results // 500

new_end_date = datasets[-1]["properties"]["date"].split("/")[1]

for i in range(extra_loops_needed):

# ensure the last loop we only get the remaining assets
if i + 1 < extra_loops_needed:
num_features = 10_000
num_features = 500
else:
num_features = num_total_results - len(datasets)

Expand Down

0 comments on commit 5e099fe

Please sign in to comment.