It is a usual practice of calculating CV for rainfall/precipitation data after detrending the time series as suggested by many authors like (Giorgi et al. 2004; Blazquez et al. 2013). "Say, I have total winter rainfall data in a single time series. I calculated the detrended time series by subtracting the linear trend (or the fitted values of the linear regression) from the actual data. I got both positive and negative values in the detrended time series (Residual). If I calculate the CV (SD/mean) of this time series, the values are infinite as the mean of the time series is nearly zero".
Please kindly guide me. I want to know, where am I doing wrong?