Change values for a period in NETCDF dataset using cdo
Added by Divyam Garg over 1 year 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 about 1 year 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