Project

General

Profile

Add year dimension to files?

Added by SAM FAG almost 4 years ago

Hi All,

I have these files where they are provided as one year for each file. Each file contains 12 months (1,2,3, ....). so no time dimension.
So I can not use mergetime.

I tried cdo settaxis,1984-01-01,00:00,1month dat_1984.nc dat_1984tm.nc but I got 4 dimensions lat long time month.

I want to combine months and time, so I have three dimensions time lat long 1984-01-01 1984-02-01 etc

Thanks for your help


Replies (2)

RE: Add year dimension to files? - Added by SAM FAG almost 4 years ago

by the way, when Itry cdo -chname,month,time it does not change name

RE: Add year dimension to files? - Added by Ralf Mueller almost 4 years ago

hi Sam!

CDO does only allow to change data variables, not coordinate variables. you can use the NCO ncrename for this like here

cheers
ralf

    (1-2/2)