Project

General

Profile

Normalised multiyear daily data by std

Added by Appolinaire Vondou derbetini about 1 year ago

Dear,

I have multiyear CHIRPS data. I wanted to normalized daily anomaly following these lines

  1. Daily climatology
    cdo ydaymean input.nc mean_clim.nc
  1. climatology std
    cdo ydaystd input.nc std_clim.nc
  1. daily anomaly
    cdo ydaysub input mean_clim.nc anomaly.nc
  1. normalised climatology anomaly
    cdo div anomaly.nc std_clim.nc norm_ano_clim.nc

I am having this error

cdo div (Warning): stream2 has more time steps than stream1!

Is there a way to do it better than what I am implementing?

Thank you


Replies (1)

RE: Normalised multiyear daily data by std - Added by Karin Meier-Fleischer about 1 year ago

Hi Appollinaire,

the warning is ok and can be ignored. It says that the number of time steps in std_clim.nc is less than in the anomaly.nc file. In the line before this warning cdo tells you that the stream2 will be filled up:

cdo    div: Filling up stream2 >std_clim.nc< by copying all timesteps.
cdo    div (Warning): stream2 has more time steps than stream1!

Somewhat shorter:

cdo -ydaystd input.nc std_clim.nc

cdo -ydaysub input.nc -ydaymean input.nc anomaly.nc

cdo -div anomaly.nc std_clim.nc norm_ano_clim.nc

    (1-1/1)