首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >顶刊DISO方法的Python 代码,重磅公开发布!

顶刊DISO方法的Python 代码,重磅公开发布!

作者头像
气象学家
发布2026-03-26 11:15:03
发布2026-03-26 11:15:03
430
举报
文章被收录于专栏:气象学家气象学家
代码语言:javascript
复制
import pandas as pd
import numpy as np
 
# 从xlsx文件读取数据
df = pd.read_excel('cal_DISOdata.xlsx')
indicators = df.values
[m, n] = indicators.shape
 
# 计算diso值
indicators_1 = np.zeros((m, n))
for i in range(m):
    for j in range(n):
        if (indicators[i, j] >= -1) and (indicators[i, j] <= 1):
            indicators_1[i, j] = indicators[i, j]
        else:
            indicators_1[i, j] = indicators[i, j] / (np.max(indicators[:, j]) - np.min(indicators[:, j]))
 
nors = indicators_1
 
dis = np.zeros((m, n))
for i in range(m):
    for j in range(n):
        if j == 0:
            dis[i, j] = 0 + (nors[i, j] - nors[0, j]) ** 2
        else:
            dis[i, j] = dis[i, j - 1] + (nors[i, j] - nors[0, j]) ** 2
DISO = np.sqrt(dis)
 
# 输出结果到xlsx文件
df = pd.DataFrame(DISO)
 
# 将结果保存到test2_output.xlsx文件中
df.to_excel('diso_output.xlsx', sheet_name='Sheet1', index=False)

参考以下三篇论文

1.Hu, Z., Chen, D., Chen, X., Zhou, Q., Peng, Y., Li, J., Sang, Y., 2022, CCHZ-DISO: A Timely New Assessment System for data quality or model performance from Da Dao Zhi Jian, Geophysical Research Letters, 49, e2022GL100681.

原文链接:https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2022GL100681

2.Zhou, Q., Chen, D., Hu, Z*., Chen, X*, 2021, Decompositions of Taylor diagram and DISO performance criteria, International Journal of Climatology, 41 (12), 5726-5732. ESI 高被引。

原文链接:https://rmets.onlinelibrary.wiley.com/action/doSearch?AllField=Decompositions+of+Taylor+diagram+and+DISO+performance+criteria&SeriesKey=10970088

3.Hu, Z., Chen, X., Zhou, Q., Chen, D., Li, J., 2019, DISO: A rethink of Taylor diagram, International Journal of Climatology, 39, 2825-2832

原文链接:https://rmets.onlinelibrary.wiley.com/action/doSearch?AllField=DISO%3A+A+rethink+of+Taylor+diagram&SeriesKey=10970088

END

声明:欢迎转载、转发。气象学家公众号转载信息旨在传播交流,其内容由作者负责,不代表本号观点。文中部分图片来源于网络,如涉及内容、版权和其他问题,请联系小编处理。

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2026-01-23,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 气象学家 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档