Converting binary data to netcdf - 360-days calendar daily calendar is not recognized
Added by Duarte Costa almost 11 years ago
Dear all,
I have a data series of daily data on a 360-day calendar in a binary format. I would like to convert it to netcdf so that I can work on it using CDO.
However, the cdo -f nc import_binary command is not working as it does not recognised the 360-day option in the .ctl file:
Open Error: Data file type invalid
--> The invalid description file record is:
--> OPTIONS 360_day_calendar
The data file was not opened.
In the CDO guide there is some help in converting absolute time data into relative (with a set calendar) with the -a prefix.
I wonder if there is a command to convert relative into absolute?
If so, I could:
1) Convert the 360-day calendar daily data series into absolute time
2) Convert the absolute time data series into nc
3) Bring the data series back to its calendar using cdo setcalendar,360_day absolute.time.nc 360_day.calendar.nc
Does anyone know whether this is possible and a sound methodology to have my 360_day calendar data in nc?
Thanks for your help
Duarte
Replies (1)
RE: Converting binary data to netcdf - 360-days calendar daily calendar is not recognized - Added by Uwe Schulzweida about 10 years ago
As far as I know GrADS does not support a 360 day calendar. At least the option 360_day_calendar is not supported by GrADS. You have to remove the 360_day_calendar option and create a new time axis with a 360 day calendar:
cdo settaxis,<startdate>,<starttime>,<increment> -setcalendar,360_day -importbinary ifile.ctl ofile.nc