I have encountered four consecutive years, several consecutive months in a year and dates in a month of missing observed temperature data. How can I fill the missing data?
If you ignore the time dependency, you could use the R packages VIM or mi, for example. Otherwise, I think the Amelia (Amelia2) package in R can be used for it.