This commit is contained in:
Felix Delattre 2026-01-25 15:22:34 +01:00
parent 7a695cc089
commit 415af89c7d
4 changed files with 80 additions and 143 deletions

View file

@ -107,6 +107,7 @@ def _create_timeseries_for_dir(output_dir, site_position, source_name):
timeseries.append({"date": date, "filename": filename, "ndvi": ndvi_value})
timeseries.sort(key=lambda x: x["date"])
output_dir.mkdir(parents=True, exist_ok=True)
timeseries_file = output_dir / "timeseries.json"
with open(timeseries_file, "w") as f:
json.dump(timeseries, f, indent=2)