From 69d24132ec3ee45ad1da4a4624e88a48e38dca4f Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Wed, 8 May 2024 08:45:26 +0200
Subject: [PATCH] Remove step where we keep old TIFF files

---
 SEPTREFHUM.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/SEPTREFHUM.py b/SEPTREFHUM.py
index dcaba5c..d1ff4cf 100755
--- a/SEPTREFHUM.py
+++ b/SEPTREFHUM.py
@@ -197,12 +197,6 @@ for timestep in timesteps:
     timestep_date = datetime.fromtimestamp(timestep).astimezone(local_timezone)
     file_date = timestep_date.astimezone(local_timezone).strftime("%Y-%m-%d")
     timestep_dates.append(file_date)
-    # If start_date is set, that means that we should only generate result files from that date on 
-    # -- IF GeoTIFF fiels already exists before that.
-    # THERE IS A BUG IN THIS LOGIC, DISABLING FOR NOW
-    #if start_date is not None and timestep_date < start_date:
-    #     if os.path.isfile(f'{outfile_path}result_WARNING_STATUS_{file_date}.tif') and os.path.isfile(f'{outfile_path}result_{file_date}.tif'):
-    #        continue
 
     # Create NetCDF result file
     subprocess.run(f'cdo -s -seltimestep,{timestep_index}/{timestep_index} {tmpfile_path}result.nc {tmpfile_path}result_{file_date}.nc', shell=True)
-- 
GitLab