Skip to content

Commit

Permalink
skip scenes already processed
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteVandecrux committed Feb 4, 2021
1 parent 300f99c commit a73db4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S3_proc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ for folder in $(ls ${inpath} | grep S3._OL_1_EFR); do
olci_dts=$(echo "${olci_folder}" | rev | cut -d_ -f11 | rev)
dest=${outpath}/${olci_dts}

# if [[ -d "${dest}" ]]; then continue; fi
# skipping if scene already processed
if [[ -d "${dest}" ]]; then
if [[ -f "${dest}/r_TOA_01.tif" ]]; then
log_warn "${dest} already exists, scene skipped"
continue
fi
fi

# find nearest SLSTR folder. Timestamp is same or next minute.
olci_date=${olci_dts:0:8}
Expand Down

0 comments on commit a73db4b

Please sign in to comment.