Unsupported TIMEUNIT
Added by Parisa Khorsand 7 months ago
I have a netcdf file that I want to mask ocean areas. However, when I type the cdo sinfon command, it gives me the Unsupported TIMEUNIT error. I will send you the error file and the cdo version.
best regards
Parisa
cdoversion.PNG (31.6 KB) cdoversion.PNG | |||
cdo.PNG (32.5 KB) cdo.PNG | |||
surface_d02_20130109.nc (130 MB) surface_d02_20130109.nc |
Replies (1)
RE: Unsupported TIMEUNIT - Added by Karin Meier-Fleischer 7 months ago
Hi Parisa,
as the CDO warning is telling you the time units format is wrong. You can see the time values with
ncdump -v Time surface_d02_20130109.nc
Output:
Time = 2013011000, 2013011001, 2013011002, 2013011003, 2013011004, 2013011005, 2013011006, 2013011007, 2013011008, 2013011009, 2013011010, 2013011011, 2013011012, 2013011013, 2013011014, 2013011015, 2013011016, 2013011017, 2013011018, 2013011019, 2013011020, 2013011021, 2013011022, 2013011023, 2013011100, 2013011101, 2013011102, 2013011103, 2013011104, 2013011105, 2013011106, 2013011107, 2013011108, 2013011109, 2013011110, 2013011111, 2013011112, 2013011113, 2013011114, 2013011115, 2013011116, 2013011117, 2013011118, 2013011119, 2013011120, 2013011121, 2013011122, 2013011123 ;
Now, you can fix the time with CDO:
cdo -r -setreftime,2013-01-01,00:00,1hour -settaxis,2013-01-10,00:00,1hour surface_d02_20130109.nc surface_d02_20130109_correct_time_units.nc