如何在NC文件中更正参考时间?
如
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
请参阅此链接,请参阅此链接有关在线手册中的详细信息
最后提到
reftime
对于大多数目的应该是任意的。通常,只有通过数据协议指定的参考时间(即您想将模型输出上传到模型对比项目),他们指定他们想要特定的重新段) - 这一事实不是第一个事实,这一事实不是第一个,时间层的日期通常不是问题,日期仍然是正确的。you can set the reference time with
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.