feat:支持 TS 评分

This commit is contained in:
yarnom 2025-12-01 17:04:39 +08:00
parent b210ebc075
commit 8ca1435591

View File

@ -291,7 +291,7 @@ func handleTSPage(c *gin.Context) {
// header + legend // header + legend
b.WriteString("<div>时间窗: " + start.Format("2006-01-02 15:04:05") + " ~ " + end.Format("2006-01-02 15:04:05") + "</div>") b.WriteString("<div>时间窗: " + start.Format("2006-01-02 15:04:05") + " ~ " + end.Format("2006-01-02 15:04:05") + "</div>")
b.WriteString("<div style='margin:6px 0;color:#444;'>说明: n=样本总数; n11=命中(预报雨且实况雨); n01=漏报(预报不雨但实况雨); n10=空报(预报雨但实况不雨); n00=正确未报(预报与实况均不雨)。CSI=临界成功指数; POD=命中率; FAR=误报率。</div>") b.WriteString("<div style='margin:6px 0;color:#444;'>说明n 为样本数频数n11 为预报降雨且实况降雨n01 为预报不降雨但实况降雨漏报n10 为预报降雨但实况不降雨空报n00 为预报与实况均不降雨。CSI 为临界成功指数POD 为命中率FAR 为误报率。</div>")
b.WriteString("<table border='1' cellpadding='6' cellspacing='0'>") b.WriteString("<table border='1' cellpadding='6' cellspacing='0'>")
b.WriteString("<tr><th>Provider</th><th>预报点</th><th>n</th><th>n11</th><th>n01</th><th>n10</th><th>n00</th><th>CSI</th><th>POD</th><th>FAR</th></tr>") b.WriteString("<tr><th>Provider</th><th>预报点</th><th>n</th><th>n11</th><th>n01</th><th>n10</th><th>n00</th><th>CSI</th><th>POD</th><th>FAR</th></tr>")