Skip to content
Snippets Groups Projects
Commit 5cc1320f authored by David Schäfer's avatar David Schäfer
Browse files

Merge branch 'dendro' into 'meteo'

Dendro

See merge request !35
parents 4ca2b3fa 319f2926
No related branches found
No related tags found
2 merge requests!35Dendro,!23Major rework of the entire pipeline
......@@ -104,7 +104,7 @@ def dendroProcess(data, manflags):
concat_df = pd.concat([values, dropped_manflags], axis=1)
concat_df = concat_df.loc[start_date:end_date]
first_value = values.iloc[0]
first_value = values.iloc[0]
start_idx = concat_df['d_ini'].dropna().index
stop_idx = start_idx[1:].tolist() + [pd.Timestamp.today()]
# some old data doesn't have useable manflags, this should be filtered here
......@@ -118,6 +118,10 @@ def dendroProcess(data, manflags):
continue
calc = dendroCalculation(chunk, key, first_value)
temporary.append(calc)
# some old data has values, but manflags starts, when tree is fallen, all chunks are empty and the temporary
# list is also empty
if not temporary:
continue
name = f"{int(key.split('_')[1])}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment