Project

General

Profile

Select one of the variables in several nc files and merge them into a new nc file

Added by jiayan yang about 2 years ago

hi,all:
I want to merge the 13 channels from several moments of himawari-8 satellite profiles together, but there is no time step for each nc file. When I use 'merge' or 'selvar', it reports the error.
Warning (find_time_vars) : Found more than one time variable, skipped variable end_time!

could you help me? thank you so much!


Replies (2)

RE: Select one of the variables in several nc files and merge them into a new nc file - Added by Karin Meier-Fleischer about 2 years ago

Hi Jiayan,

I think you have to assign a time dimension for each file. Use the settaxis operator (see https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.6.4), e.g.

cdo settaxis,1987-01-16,12:00:00,1mon infile outfile

-Karin

RE: Select one of the variables in several nc files and merge them into a new nc file - Added by jiayan yang about 2 years ago

Karin,thinks for your response!My problem has been solved!thank you again!

    (1-2/2)