foo
This commit is contained in:
parent
7a695cc089
commit
415af89c7d
4 changed files with 80 additions and 143 deletions
1
ndvi.py
1
ndvi.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue