rain = (rainc+i_rainc*100) + (rainnc+i_rainnc*100) ; where 100 is the bucket size.

But I am not able to de-accumulate the rainfall amount. The size of rainc, rainnc, i_rainc, i_rainnc is 360*180*153, where 153 is the number of time steps. I tried to de-accumulate the amount using the following:

for i=2:153

rain_de[:,: ,i-1] = rain [:,:,i] - rain [:,:,i-1]

The overall pattern seems good, but I am not sure if I am doing this correctly because the values differ from the observations by a significant margin.