I have SST data for 30 days of one rigion. However, part of daily (several days) data is missed, as shown in the following figure. So, I want to calculate the average value of these obtained SST data for these 30 days. Since some of the days are missed.
I am wondering how can I calculate the average SST value for these 30 days? My data is in .mat format.
For example, is there any function (in Matlab or Python) I can use to calculate the average value even though some of the data are missed?
Note: the 'NaN' indicates the missed data.
Thanks in advance!