Project

General

Profile

How can I select several month from daily data?

Added by ZHANG HAN about 2 years ago

Hi everyone,

Now I want to extract several months from given daily data, I have tyied that using such as the "selmon,8,9,10" code, but it does not work.
Is it possible to select several months from daily data? How can I ?

Thank you


Replies (4)

RE: How can I select several month from daily data? - Added by ZHANG HAN about 2 years ago

Hi Karin,

Thanks for your answer! I have solved it as you said. But There is still a question.
I am sure that the code selmon is equal to the selmonth when the given data is monthly data (this has been proved using hgt.mon.mean.nc). For the daily data, the code selmon can not work correctly ( but it does work ), the time to process the daily data using selmon is very long, and the time step of the output file is only 1. Is the selmon a correct code in CDO? Maybe it only works on daily data?
Looking forward to your reply.

RE: How can I select several month from daily data? - Added by ZHANG HAN about 2 years ago

Sorry, Maybe it only works on daily data? should be corrected to Maybe it only works on monthly data?

RE: How can I select several month from daily data? - Added by ZHANG HAN about 2 years ago

Karin Meier-Fleischer wrote in RE: How can I select several month from daily data?:

Hi Zhang,

the correct name of the operator is selmonth, see https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.3.4.

Hi Karin,
I think I already know the crux of the problem. The time range of daily data I tried to process at first was 1979.01.01 -- 2022.03.15, which was not a complete time series. When I changed the time series of the data to 1979.01.01 to 2021.12.31, both selmon and selmonth worked properly, thanks again.

    (1-4/4)