feat:支持 TS 评分

This commit is contained in:
yarnom 2025-12-01 18:20:19 +08:00
parent 8ca1435591
commit 19ab65dec6

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 为预报降雨且实况降雨Hitn01 为预报不降雨但实况降雨漏报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>")