Skip to content

Commit

Permalink
Merge pull request #904 from nasa/903_reduce_m_check_early_disp_s1_hist
Browse files Browse the repository at this point in the history
#903: Reducing m when checking for compressed cslcs early in DISP-S1 …
  • Loading branch information
hhlee445 authored Jul 3, 2024
2 parents 913cd91 + 01acbe2 commit bdb85b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion data_subscriber/asf_cslc_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ def run_download(self, args, token, es_conn, netloc, username, password, cmr, jo
'''
prev_day_indices = get_prev_day_indices(latest_acq_cycle_index, frame_id, self.disp_burst_map, args, token, cmr, settings)

# special case for early sensing time series. Reduce m if there aren't enough sensing times in the database in the first place
# For example, if k was 4 and m was 3, but there are only 4 previous sensing times in the database, then m should be 2
if len(prev_day_indices) < k * (m - 1):
m = (len(prev_day_indices) // k) + 1

for mm in range(0, m-1): # m parameter is inclusive of the current frame at hand
for burst_id in burst_id_set:
ccslc_m_index = get_dependent_ccslc_index(prev_day_indices, mm, k, burst_id) #looks like t034_071112_iw3_461
Expand All @@ -206,7 +211,6 @@ def run_download(self, args, token, es_conn, netloc, username, password, cmr, jo

for ccslc in ccslcs:
c_cslc_s3paths.extend(ccslc["_source"]["metadata"]["product_s3_paths"])
#asdfg
# <------------------------- Compressed CSLC look up

# Look up bounding box for frame
Expand Down

0 comments on commit bdb85b0

Please sign in to comment.