Skip to content

Commit

Permalink
Added a check for scene completeness. If complete do not add to the l…
Browse files Browse the repository at this point in the history
…ist of scenes to run nbar over.
  • Loading branch information
sixy6e committed Jun 15, 2016
1 parent e6cae43 commit 9ab1ed1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workflow/nbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,10 @@ def main(inpath, outpath, workpath, nnodes=1, nodenum=1):
for l1t in l1t_files:
acq = gaip.acquisitions(l1t)[0]
if ((87 <= acq.path <= 116) & (67 <= acq.row <= 91)):
filtered_l1t.append(l1t)
completed = pjoin(workpath, (basename(l1t).replace('OTH', 'NBAR') +
'.completed'))
if not exists(completed):
filtered_l1t.append(l1t)
else:
msg = "Skipping {}".format(acq.dir_name)
logging.info(msg)
Expand Down

0 comments on commit 9ab1ed1

Please sign in to comment.