Though, in primary observation to your question, it seems that answer is easy, but you may asked for other information. However, my guess, the answer is:
Consider that you have the data oof rainfall(dRF) in mm. These data are stored in a variable dRF(1:366), where dRF is an array type data. Compute the total rainfalls(tRF) in the year of 2016 by summing the values in dRF, i.e., tRF=dRF(1)+dRF(2)+...+dRF(366). Now find the intensity of rainfall(iRF) by dividing tRF by 366, that is iRF=tRF/366.
If you have the data for n days, add all of the daily rainfall entries from your data set and divide by n. Sigmadrf(n=1 .....n)/ n will give you the intensity mm/n
This assumes that daily rainfall data is in mm units.
Maybe you want rainfall intensity for only rainy days. There's a different calculation for that. Count the number of zeros in your dataset drf(n=1 ....n). Say it's m. Now you divide the sigmadrf by f where f=n-m.