I would like to calculate the average precipitation per year for the period 1991 to 2020.
Now, of course, I would like the annual precipitation to be divided by 366 for leap years or by 365 for no leap years.
If the year is a leap year, then the annual precipitation is divided by 366.
if not a leap year, then annual precipitation divided by 365.
I would be very grateful for your help. Many thanks in advance and best regards,
Liza