我在尝试组合三个要平均的文件时遇到了问题。我甚至不知道如何开始。我有三个文件
Nday1.06.nc,nday1.07.nc,nday.08.nc
每个变量都有
"filling on), ('SST', <class 'netCDF4._netCDF4.Variable'>
float32 SST(time, nlat, nlon)
long_name: Surface Potential Temperature
units: degC
coordinates: TLONG TLAT time
grid_loc: 2110
cell_methods: time: mean time: mean time: mean
_FillValue: 9.96921e+36
missing_value: 9.96921e+36
unlimited dimensions: time
current shape = (1, 2400, 3600)我只需要对SST变量求平均值,然后输出一个带有平均值的文件
发布于 2018-08-08 03:52:33
你需要的是ncra而不是ncwa
http://nco.sourceforge.net/nco.html#ncra
ncra nday1.06.nc nday1.07.nc nday.08.nc out.nc发布于 2018-09-06 21:15:59
同样,您也可以使用cdo,但首先需要合并文件:
cdo mergetime nday1.06.nc nday1.07.nc nday.08.nc mergedfile.nc
然后取平均值:
cdo timmean mergedfile.nc out.nc
https://stackoverflow.com/questions/51733540
复制相似问题