Commit bb901794 authored by eudesyawog's avatar eudesyawog
Browse files

update splits

parent a8846bcd
......@@ -23,7 +23,7 @@ def smooth_plot (csv,lstBands):
cols = [col for col in df.columns if col.startswith(band) and col.endswith("Mean")]
cols.sort()
times = pd.date_range(start="{}0501".format(year), end = "{}1031".format(year), freq='D')
times = pd.date_range(start="{}0502".format(year), end = "{}1030".format(year), freq='D')
dic = {}
for index, row in df.iterrows():
......@@ -37,7 +37,7 @@ def smooth_plot (csv,lstBands):
upsampled = pd.Series(lstValues,index=times)
interpolated = upsampled.interpolate(method='linear',limit_direction='both')
resampled = interpolated.resample('5D').mean()
dic.setdefault('feat_index',[]).append(index)
if band == lstBands[0] :
dic.setdefault('ID',[]).append(row['ID'])
......
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