[Bug]: Error with standard script "walkthrough-basic" at searching cslcs #606
Replies: 4 comments
-
Hi, just checking that I'm reading it correctly- you're searching for a location in Europe? |
Beta Was this translation helpful? Give feedback.
-
Yes. You are right, it's a site on the north slope of Greater Caucasus. |
Beta Was this translation helpful? Give feedback.
-
Hi again! This code works: ASF searchimport subprocess import opera_utils.download aoi = ( This code doesn't works: ASF searchimport subprocess import opera_utils.download aoi = ( The one difference - is the day range. So is it can be related with gaps (or something else, because wider range works well) in Opera data even I'm interested in North America? |
Beta Was this translation helpful? Give feedback.
-
Ah sorry for not linking to the exact region covered: it is actually more like "The United States + territories + cascadia subduction zone + 200 km into canada". Processing the entire country of Canada is outside the current budget |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked for duplicates
Yes - I've already checked
Describe the bug
Dear colleagues! The Dolphin works well for me with test case of Texas. But at the attempting to change AOI, track and dates I get the error:
IndexError Traceback (most recent call last)
Cell In[30], line 10
5 import opera_utils.download
7 aoi = (
8 "POLYGON((42.5569 43.2145,42.7224 43.2145,42.7224 43.2591,42.5569 43.2591,42.5569 43.2145))"
9 )
---> 10 results, options = opera_utils.download.search_cslcs(
11 aoi_polygon=aoi,
12 # We want to have the same set of dates for each Burst ID (spatial footprint)
13 check_missing_data=True,
14 track=50,
15 start="2024-06-01",
16 end="2024-10-01",
17 )
18 best_option = options[0]
20 slc_dir = Path("input_slcs")
File ~/miniconda3/lib/python3.11/site-packages/opera_utils/download.py:238, in search_l2(start, end, bounds, aoi_polygon, track, burst_ids, max_results, product, check_missing_data)
236 if not check_missing_data:
237 return results
--> 238 missing_data_options = get_missing_data_options(
239 slc_files=[r.properties["url"] for r in results]
240 )
241 return results, missing_data_options
File ~/miniconda3/lib/python3.11/site-packages/opera_utils/missing_data.py:96, in get_missing_data_options(slc_files, burst_id_date_tuples)
92 B = get_burst_id_date_incidence(burst_id_to_dates)
93 # In this matrix,
94 # - Each row corresponds to one of the possible burst IDs
95 # - Each column corresponds to one of the possible dates
---> 96 options = generate_burst_subset_options(B, all_burst_ids, all_dates)
97 # If they gave strings/files/urls, pick those out
98 if slc_files is not None:
File ~/miniconda3/lib/python3.11/site-packages/opera_utils/missing_data.py:255, in generate_burst_subset_options(B, burst_ids, dates)
252 break
253 date_idxs_to_exclude_combinations.append(set(flatten(combo)))
--> 255 all_column_idxs = set(range(B.shape[1]))
256 all_row_idxs = set(range(B.shape[0]))
258 # Track the row/col combinations that we've already
IndexError: tuple index out of range
What did you expect?
Reproducible steps
1. 2. 3. ... If you have a `dolphin_config.yaml` that you used, you can attach that as well.
Environment
Beta Was this translation helpful? Give feedback.
All reactions