creating new time-axis
Added by David Schubert almost 10 years ago
Hi,
attached is a file with 3 hourly values of relative humidity but the variable names give the hour of observation.
I want to use CDOs commands to create a 3 hourly time-axis with the corresponding values of the variables names.
What would be the best way to do so?
I have tried a combination of settaxis and selvar but it did not work. Maybe I overlook something?
Thanks in advance,
David
relative_humidity.nc (1.4 MB) relative_humidity.nc |
Replies (1)
RE: creating new time-axis - Added by Jaison-Thomas Ambadan almost 10 years ago
try, for example,
cdo -mergetime -chname,rh1_03,rh -settime,03:00:00 -selvar,rh1_03 relative_humidity.nc -chname,rh1_06,rh -settime,06:00:00 -selvar,rh1_06 relative_humidity.nc ofile.nc cdo -sinfon ofile.nc