如何在NC文件中更正参考时间?

发布于 2025-02-02 12:34:49 字数 448 浏览 5 评论 0原文

ncatted -a calendar,time,o,c,standard in.nc out.nc

更改

cdo setcalendar,standard in.nc out.nc

日历:Gregorian到日历:标准时间:Ref Time仍然是1900:01:01,如图所示 2 在此处输入图像描述 在这方面需要帮助。 我正在使用CDO,R和Python。 如何更正裁判时间?

As it is shown in this image , my data starts from 1980-01-01 00:00:00. I would like my ref time to be the first time entry i.e. 1980-01-01. But instead the ref time is 1900-01-01 00:00:00. As the calendar is gregorian, i tried to change the calendar to standard format by using these two different commands and both works

ncatted -a calendar,time,o,c,standard in.nc out.nc

or

cdo setcalendar,standard in.nc out.nc

It changes the calendar:gregorian to calendar:standard but ref time is still 1900:01:01 as shown in the pic 2
enter image description here
Need help in this regard.
I am using cdo, R, and python.
How can I correct the ref time ?

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

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

发布评论

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

评论(1

全部不再 2025-02-09 12:34:49

您可以使用

cdo setreftime,date in.nc out.nc

请参阅此链接,请参阅此链接有关在线手册中的详细信息

最后提到reftime对于大多数目的应该是任意的。通常,只有通过数据协议指定的参考时间(即您想将模型输出上传到模型对比项目),他们指定他们想要特定的重新段) - 这一事实不是第一个事实,这一事实不是第一个,时间层的日期通常不是问题,日期仍然是正确的。

you can set the reference time with

cdo setreftime,date in.nc out.nc

See this link for details in the online manual

Just to lastly mention that the reftime should be arbitrary for most purposes. Usually one only needs to change the ref time if it is specified by a data protocol (i.e. you want to upload model output to a model intercomparison project and they specify that they want a specific reftime) - the fact that the reftime is not the first timeslice's date is usually not an issue, the dates will still be correct.

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