Commit d1ef2a89 authored by eudesyawog's avatar eudesyawog

add project to csv files

parent 3dd0ade0
......@@ -75,6 +75,7 @@ def ZonalStats (plots_file,lstTS,dates_file,outPath,outPattern,tree_mask=None):
dic.setdefault('feat_index',[]).append(index)
if j == 0:
dic.setdefault('ID',[]).append(row['ID'])
dic.setdefault('Projet',[]).append(row['Projet'])
dic.setdefault('Biom_f',[]).append(row['Biomasse_f'])
dic.setdefault('Biom_s',[]).append(row['Biomasse_s'])
dic.setdefault('Rdt_f',[]).append(row['Rdt_f'])
......@@ -109,6 +110,7 @@ def ZonalStats (plots_file,lstTS,dates_file,outPath,outPattern,tree_mask=None):
ggplot_dic.setdefault('Date',[]).append(datetime.datetime.strptime(lstDates[d],"%Y%m%d").strftime("%Y-%m-%d"))
ggplot_dic.setdefault('Band',[]).append(band)
ggplot_dic.setdefault('Plot',[]).append(row['ID'])
ggplot_dic.setdefault('Projet',[]).append(row['Projet'])
# ggplot_dic.setdefault('Crop',[]).append(row['Crop'])
ggplot_dic.setdefault('Sowing',[]).append(row['Semi'])
ggplot_dic.setdefault('Harvest',[]).append(row['Recolte'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment