We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To support auto-updating with minimal human interaction, we should implement some level of automatic monitoring.
The text was updated successfully, but these errors were encountered:
Example algorithm: If the changes in the most recent update are more than 20 % over the max historical (last 3 year) change, flag it.
import xarray as xr import numpy as np ds = xr.open_dataset('./out/gate.nc') df = ds['discharge'].T.to_dataframe().unstack() past = df[df.index > df.index[-1] - pd.DateOffset(years=3)] flag = np.abs(past.diff().iloc[-1]) > np.abs(past.diff().iloc[:-1].max()*1.20) flag = flag[flag == True] if flag.size == 0: print("No flags") else: df[flag.index].loc['2016':].plot(drawstyle='steps-post')
Sorry, something went wrong.
No branches or pull requests
To support auto-updating with minimal human interaction, we should implement some level of automatic monitoring.
The text was updated successfully, but these errors were encountered: