Project

General

Profile

Error parsing time_units for SDF file after using settime

Added by Justin Hicks over 6 years ago

Hello,

I had merged a year's worth of daily files together using the following command: 'cdo mergetime 2000* NVAP-M_2000.nc'. After this, I had to set the grid for the file, so I used the command: 'cdo -f nc -setgrid,MyGrid NVAP-M_2000.nc NVAP-M_2000.grid.nc'.

I then had to set the time for this file because the default time was showing up, so I used 'cdo settaxis,2000-01-01,00:00:00,1day NVAP-M_2000.grid.nc NVAP-M_2000.grid-time.nc' to have a starting time at January 1st, 2000 with a time-step of 1 day.

However, I am getting an error in GrADS after using the 'cdo settaxis' command. The error "Error parsing time_units for SDF file" appears when I try to open the netcdf file in GrADS, and I'm not sure why.

I will post a few of the datafiles below, as well as the 'setgrid' file called MyGrid.

-Justin


Replies (1)

RE: Error parsing time_units for SDF file after using settime - Added by Uwe Schulzweida over 6 years ago

Hello Justin,

mergetime is not the correct operator for this task, because your data has no time information. Try it with the CDO operator cat and use the option -r (relative time axis):

cdo -r settaxis,2000-01-01,00:00:00,1day -setgrid,MyGrid -cat '2000*' NVAP-M_2000.nc
Cheers,
Uwe

    (1-1/1)