如何使用 cdo 从 netcdf 文件中提取除指定时间步之外的所有时间步

发布于 2025-01-14 15:51:23 字数 209 浏览 4 评论 0原文

我们通常使用“cdo seltimestep”来选择要从 netcdf 文件中提取的日期到仅包含我们指定的日期的输出文件中。

cdo seltimestep,6,10,11 2000-03.nc 03-days.nc

但现在我们想做相反的事情,我们想要选择除指定日期之外的所有日期。有没有办法在cdo中做到这一点?

We usually use 'cdo seltimestep' to select the days we want to extract from a netcdf file into an output file that includes only the days we specified.

cdo seltimestep,6,10,11 2000-03.nc 03-days.nc

but now we want to do the opposite, we want to select all the days except the ones specified. Is there a way to do that in cdo?

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

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

发布评论

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

评论(1

不再见 2025-01-21 15:51:23

您可以通过以下方式使用运算符delete

cdo delete,timestep=6,10,11 ifile ofile

You can use the operator delete in the following way:

cdo delete,timestep=6,10,11 ifile ofile
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文