Skip to content

Commit

Permalink
add simple diagnostic plot for dailyerosion#115
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Feb 3, 2022
1 parent 2355d68 commit f2f1681
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/plots/plot_wb_snow.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
"""Diagnose some Water Balance stuff"""
import sys
import glob
import datetime

from tqdm import tqdm
import pandas as pd
from scipy import stats
import seaborn as sns
from pyiem.plot import figure_axes
from pyiem.dep import read_wb
from pyiem.util import get_dbconnstr

Expand All @@ -33,7 +28,7 @@ def main(argv):
g.ax.set_xlabel("Snow Depth WEPP (mm)")
df = df[pd.notnull(df["obs"])]
b = df["snodpy"].mean() - df["obs"].mean()
g.ax.text(0.05, 0.8, "bias:{:.3f}mm".format(b), transform=g.ax.transAxes)
g.ax.text(0.05, 0.8, f"bias:{b:.3f}mm", transform=g.ax.transAxes)
g.fig.subplots_adjust(top=0.95)
g.fig.savefig("test.png")

Expand Down

0 comments on commit f2f1681

Please sign in to comment.