|
|
@ -33,7 +33,8 @@ def load_data_RH_logger(filepath, every=1):
|
|
|
|
def process_data_RH_logger(filepath, every):
|
|
|
|
def process_data_RH_logger(filepath, every):
|
|
|
|
df = load_data_RH_logger(filepath, every=1)
|
|
|
|
df = load_data_RH_logger(filepath, every=1)
|
|
|
|
# Derivative
|
|
|
|
# Derivative
|
|
|
|
df['dmdt_SG'] = savgol_filter(df['weight'], window_length=10000, polyorder=1, deriv=1)
|
|
|
|
delta = np.mean(df['time'].diff())
|
|
|
|
|
|
|
|
df['dmdt_SG'] = savgol_filter(df['weight'], window_length=10000, polyorder=1, deriv=1, delta=delta)
|
|
|
|
df['dmdt_diff'] = df['weight'].diff(periods=1000) / df['time'].diff(periods=1000)
|
|
|
|
df['dmdt_diff'] = df['weight'].diff(periods=1000) / df['time'].diff(periods=1000)
|
|
|
|
|
|
|
|
|
|
|
|
h5path = os.path.splitext(filepath)[0]
|
|
|
|
h5path = os.path.splitext(filepath)[0]
|
|
|
|