Fixed efast to generate data for each day.

This commit is contained in:
Felix Delattre 2025-12-24 09:10:29 +01:00
parent 0ec1b414c4
commit 0806bf3876

View file

@ -206,9 +206,6 @@ def run_efast(year, site_position, site_name, date_range=None):
current_date += timedelta(days=1)
continue
if list(s2_output_dir.glob(f"*{date_str}*REFL.tif")) and list(
s3_output_dir.glob(f"composite_{date_str}.tif")
):
try:
efast_fusion.fusion(
current_date,
@ -224,11 +221,9 @@ def run_efast(year, site_position, site_name, date_range=None):
if output_file.exists():
print(f"[EFAST] Saved: {output_file}")
else:
print(f"[EFAST] No output for {date_str}")
print(f"[EFAST] No output for {date_str} (insufficient nearby data)")
except Exception as e:
print(f"[EFAST] Error processing {date_str}: {e}")
else:
print(f"[EFAST] Skipping {date_str} (insufficient data)")
current_date += timedelta(days=1)