Project

General

Profile

Change values for a period in NETCDF dataset using cdo

Added by Divyam Garg 6 months ago

Hi,

I have a NETCDF dataset containing temperature and rainfall values for a 30 year period (1976-2005). I can see that rainfall values for July 2005 are erroneous (very high values compared to previous years) and need to be replaced with different values. How can I do it using cdo?
I want to change the values for only that particular month i.e. July 2005.

Any help would be appreciated.


Replies (1)

RE: Change values for a period in NETCDF dataset using cdo - Added by Karin Meier-Fleischer 4 months ago

Hi Divyam,

you can split the netCDF file into single months per year with the operator splityearmon, exchange the file of the erroneous month, and use mergetime operator to merge the file back into a single file.

See https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.2.12
and https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.2.10

    (1-1/1)