From a73db4b95c008048fc1e1097ca5f496611b56375 Mon Sep 17 00:00:00 2001 From: BaptisteVandecrux Date: Thu, 4 Feb 2021 13:08:10 +0000 Subject: [PATCH] skip scenes already processed --- S3_proc.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/S3_proc.sh b/S3_proc.sh index 20ea155..b74e583 100755 --- a/S3_proc.sh +++ b/S3_proc.sh @@ -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}