首页 > 解决方案 > 如何计算 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-3.xpython-xarrayweighted-averagenetcdf4

解决方案


推荐阅读