netcdf - CDO monmean
netcdf - CDO monmean
我有一个 netcdf 文件,其中包含每日时间步长,我希望将其转换为每月时间步长。
时间格式如下:
double time(time) ;
time:standard_name = "time" ;
time:long_name = "time" ;
time:bounds = "time_bnds" ;
time:units = "days since 2000-01-01" ;
time:calendar = "standard" ;
time:axis = "T" ;
当我使用命令转换为每月时间步长时:
cdo monmean input.nc output.nc
一切正常,除了时间输出很奇怪:
time = "2000-01-16", "2000-02-15", "2000-03-16", "2000-04-15 12",
"2000-05-16", "2000-06-15 12", "2000-07-16", "2000-08-16",
"2000-09-15 12", "2000-10-16", "2000-11-15 12", "2000-12-16";
我希望将每月值中的日期替换为该月的第一天,并删除出现的时间的那些奇数 12。期望的输出:
time = "2000-01-01", "2000-02-01", "2000-03-01", "2000-04-01",
"2000-05-01", "2000-06-01", "2000-07-01", "2000-08-01",
"2000-09-01", "2000-10-01", "2000-11-01", "2000-12-01";
感谢任何提示
cdo --timestat_date first monmean input.nc output.nc
适合我,希望对您有所帮助!它将时间戳放在平均周期的第一步,而默认值在中间。 (还有一个--timestat_date
last 反之则放在window的最后一步)
我有一个 netcdf 文件,其中包含每日时间步长,我希望将其转换为每月时间步长。 时间格式如下:
double time(time) ;
time:standard_name = "time" ;
time:long_name = "time" ;
time:bounds = "time_bnds" ;
time:units = "days since 2000-01-01" ;
time:calendar = "standard" ;
time:axis = "T" ;
当我使用命令转换为每月时间步长时:
cdo monmean input.nc output.nc
一切正常,除了时间输出很奇怪:
time = "2000-01-16", "2000-02-15", "2000-03-16", "2000-04-15 12",
"2000-05-16", "2000-06-15 12", "2000-07-16", "2000-08-16",
"2000-09-15 12", "2000-10-16", "2000-11-15 12", "2000-12-16";
我希望将每月值中的日期替换为该月的第一天,并删除出现的时间的那些奇数 12。期望的输出:
time = "2000-01-01", "2000-02-01", "2000-03-01", "2000-04-01",
"2000-05-01", "2000-06-01", "2000-07-01", "2000-08-01",
"2000-09-01", "2000-10-01", "2000-11-01", "2000-12-01";
感谢任何提示
cdo --timestat_date first monmean input.nc output.nc
适合我,希望对您有所帮助!它将时间戳放在平均周期的第一步,而默认值在中间。 (还有一个--timestat_date
last 反之则放在window的最后一步)