If you're trying to do tend analysis on annual rainfall totals, you might not need to compute annual averages. However you might compute annual averages by simply taking the average of the values of total rainfall for each year in the period of record you're looking at. Commonly computed "Climate Normals" represent the average of annual values over 30 year periods and are updated each decade. For example the most recent update of climate normals is for the period 1991 - 2020.
However you should be careful with this depending on your purpose because annual rainfall totals are highly variable and over long periods can display cyclical characteristics from the influences of such phenomena as El Nino/La Nina, Pacific Decadal Oscillation, Indian Ocean Dipole, etc.
I would determine a time frame for analysis (days, months and years), collect the maximum number of real data available, feed a suitable simulation platform for testing. In parallel, it would create a network of sensors to be deployed (in the field) preferably with IoT support to enable data collection and remote management.
Hi Patrick, You can look at our latest work on the Uttrakhand region. We have used a high-resolution rainfall dataset to assess the century-long trend (using the Mann Kendall test)in the Upper Ganga Basin. I would be happy to provide the full text of this manuscript if it is not accessible to you. Thank you.
Article Spatio-temporal rainfall trends in the Ganga River basin ove...