每天下午12点至下午12点之间计算每日降水

发布于 2025-01-17 15:00:32 字数 94 浏览 4 评论 0原文

我有一个.NC文件,每1小时的降水量都包含数据,我的兴趣是增加每日降水。但是为此,我必须考虑到一天下午12点至下午12点之间的降水,因此我不能应用CDO的“天”。 有建议吗?

I have a .nc file that contains data every 1 hour of precipitation, my interest is to add the daily precipitation. But for this I have to take into account the precipitation between 12 pm on one day and 12 pm on the other, so I cannot apply "daysum" of cdo.
Any suggestion?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盗琴音 2025-01-24 15:00:32

您可以通过使用天数转移12个小时的时间来伪造它,然后将其转移回:

cdo shifttime,12hours in.nc out1.nc 
cdo daysum out1.nc out2.nc 
cdo shifttime,-12hours out2.nc outer.nc

使用管道

cdo shifttime,-12hours -daysum -shifttime,12hours in.nc out.nc

you can fudge it by shifting the time 12 hours, using daysum and then shifting it back:

cdo shifttime,12hours in.nc out1.nc 
cdo daysum out1.nc out2.nc 
cdo shifttime,-12hours out2.nc outer.nc

Using piping

cdo shifttime,-12hours -daysum -shifttime,12hours in.nc out.nc
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文