Code
= 7 TARGET_SITE_ID
1200 masl
November 17, 2024
dfg = df.groupby(df.datetime.dt.year).max_altitude_m
dmed = dfg.median()
dmax = dfg.max()
err = (np.abs(dfg.quantile([0.1, 0.9]) - dmed)).unstack()
ax = dmed.plot.bar(yerr=err.values.T, ylabel="Max altitude [masl]", xlabel="Year")
for i, p in enumerate(ax.patches):
ax.plot(p.get_center()[0], dmax.iloc[i], marker="*", ls=None, c="C0")
dfg = df.groupby(df.datetime.dt.year).length_km
dmed = dfg.median()
dmax = dfg.max()
err = (np.abs(dfg.quantile([0.1, 0.9]) - dmed)).unstack()
ax = dmed.plot.bar(yerr=err.values.T, ylabel="Max distance [km]")
for i, p in enumerate(ax.patches):
ax.plot(p.get_center()[0], dmax.iloc[i], marker="*", ls=None, c="C0")
dfg = df.groupby(df.datetime.dt.year).airtime_hours
dmed = dfg.median()
dmax = dfg.max()
err = (np.abs(dfg.quantile([0.1, 0.9]) - dmed)).unstack()
ax = dmed.plot.bar(yerr=err.values.T, ylabel="Max airtime [h]")
for i, p in enumerate(ax.patches):
ax.plot(p.get_center()[0], dmax.iloc[i], marker="*", ls=None, c="C0")