python-3.x - 如何计算 netcdf 文件中的加权平均值
问题描述
我有尺寸1400*2300*10
为 , Latitude=1400
, Longitude=2300
,的 netcdf 文件Height=10
我知道如何在 Netcdf 文件中计算高度维度的平均值
Dataset.mean(dim=Height)
我想知道,如果有任何预定义的函数来计算加权平均值(3、5、2、1、0.8、3.2、...最多 10 个随机值)。
解决方案
推荐阅读
- python - NaN 结束的 Numpy 拆分数组
- javascript - Javascript 谷歌课堂 API
- command-line - 文件说它在日志中下载,但不在本地目录中
- python - Tkinter 按钮在 exe 文件中不起作用,但在执行脚本时起作用
- azure-iot-hub - Azure IoT Edge 作为透明网关 - 将网关名称作为属性添加到消息中?
- xml - 撒克逊人过早地评估 xsl:attribute-set
- plsql - DBMS_OUTPUT - 打印文本而不打印整行
- c# - 将实体重新映射到子类实现
- c++ - 通过加入现有的 QHash 来初始化 const QHash
- mysql - mysql 每个 id 返回 1 行