我在 nco 工作,遇到了这个难题。我必须将 360 天日历重新排列为 365 天的普通公历日历。在 360 天日历中每个月有 30 天。我的想法是在公历日历中应包含 31 天的月份中增加一天,并从二月(闰年或非闰年)中删除一两天。我知道如何删除天数(只需使用 ncks 将您需要的内容复制到另一个文件中)。
有没有一种简单的方法可以复制特定月份的最后一天并将其添加到最后的同一个月?
我的文件以 3 小时的分辨率保存一年,我想使用名为tas
(温度)的变量。下面我已经 ncdump'ed 最重要的部分:
dimensions:
rlon = 424 ;
rlat = 412 ;
time = UNLIMITED ; // (2880 currently)
variables:
double rlon(rlon) ;
rlon:standard_name = "grid_longitude" ;
rlon:long_name = "longitude in rotated pole grid" ;
rlon:units = "degrees" ;
rlon:axis = "X" ;
double rlat(rlat) ;
rlat:standard_name = "grid_latitude" ;
rlat:long_name = "latitude in rotated pole grid" ;
rlat:units = "degrees" ;
double time(time) ;
time:standard_name = "time" ;
time:units = "days since 1949-12-01 00:00:00" ;
time:calendar = "360_day" ;
time:long_name = "time" ;
time:axis = "T" ;
float tas(time, rlat, rlon) ;
tas:grid_mapping = "rotated_pole" ;
tas:_FillValue = 1.e+20f ;
tas:missing_value = 1.e+20f ;
tas:standard_name = "air_temperature" ;
tas:long_name = "Near-Surface Air Temperature" ;
tas:units = "K" ;
tas:coordinates = "lon lat height" ;
tas:cell_methods = "time: point" ;
我期待听到想法。