|
|
@ -26,16 +26,18 @@ def load_data_RH_logger(filepath, every=1):
|
|
|
|
df = df.reset_index()
|
|
|
|
df = df.reset_index()
|
|
|
|
del df['index']
|
|
|
|
del df['index']
|
|
|
|
|
|
|
|
|
|
|
|
# Derivative
|
|
|
|
|
|
|
|
df['dmdt'] = savgol_filter(df['weight'], window_length=10000, polyorder=1, deriv=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return df.iloc[::every]
|
|
|
|
return df.iloc[::every]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def process_data_RH_logger(filepath):
|
|
|
|
def process_data_RH_logger(filepath, every):
|
|
|
|
df = load_data_RH_logger(filepath, every=1)
|
|
|
|
df = load_data_RH_logger(filepath, every=1)
|
|
|
|
|
|
|
|
# Derivative
|
|
|
|
|
|
|
|
df['dmdt'] = savgol_filter(df['weight'], window_length=10000, polyorder=1, deriv=1)
|
|
|
|
|
|
|
|
|
|
|
|
h5path = os.path.splitext(filepath)[0]
|
|
|
|
h5path = os.path.splitext(filepath)[0]
|
|
|
|
h5path += '-processed.h5'
|
|
|
|
h5path += '-processed.h5'
|
|
|
|
|
|
|
|
df = df.iloc[::every]
|
|
|
|
df.to_hdf(h5path, key='data')
|
|
|
|
df.to_hdf(h5path, key='data')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|