是否有任何 CDO 或 NCO 函数可以截断 netCDF 值?

问题描述 投票:0回答:1

我正在处理轻微的负值(在去除累积降水量数组之后),我认为这是由于精度导致的数值伪像,我想截断所有值 x<0 and assign them as 0.

CDO/NCO有截断值的功能吗?我找不到他们。

非常感谢!

netcdf truncate cdo-climate nco
1个回答
0
投票

截断的简洁方法是使用

ncap2
的剪裁运算符
>>
记录here

ncap2 -s 'precip = precip >> 0' in.nc out.nc
© www.soinside.com 2019 - 2024. All rights reserved.