Project

General

Profile

subtract two weeks running mean centered on the value for subtraction

Added by Khan 11 over 3 years ago

I want to calculate anomaly of precipitation data based on a two weeks running mean. the anomaly should be based on subtracting the two week running mean, centered on the 1st day of the two weeks window. the initial and final window length can be filled with missing values.

I have some search (links shown below)
https://code.mpimet.mpg.de/boards/1/topics/6612?r=6652#message-6652
https://code.mpimet.mpg.de/boards/1/topics/3545
https://code.mpimet.mpg.de/boards/1/topics/10399?r=10400

On of the command look like to do a similar job, but can someone please assure if its correct

cdo -L cat [ -setrtomiss,-999999,9999999 -select,timestep=1/24 uwnd_850hPa_1979.nc ] [ -sub -seltimestep,25/4000 uwnd_850hPa_1979.nc -runmean,25 uwnd_850hPa_1979.nc ] rmSubAll.nc

Thanks