Daily and monthly MODIS snow cover L3 data has downloaded, next to deal with missing and negative cells. Different types of interpolation are being used to fill the missing cells. I want to fill the missing cells with mean of 3 surrounding values but it is very hard because in some cases large portion of data is missing? I know to mask the NaN cell by using (nanmean) command and long term mean of same area can also be use.

Permafrost Presence/Absence Mapping of the Qinghai-Tibet Plateau Based on Multi-Source Remote Sensing Data but I am looking any possible way beside these.

What is the best way beside above mentioned two to deal the missing and negative cells of MODIS snow cover data?

Note; I am using matlab environment for this purpose.

  • $\begingroup$ apart from interpolation you can try to obtain climatological values for the snow cover for the region of interest and then fill in the gaps that way $\endgroup$
    – user1066
    Commented May 5, 2018 at 9:04
  • $\begingroup$ Have you considered using some form of inverse distance weighting? $\endgroup$
    – Fred
    Commented May 5, 2018 at 11:58
  • $\begingroup$ What do you want to do with the data? Perhaps you can mask over them as NaNs and just deal with the data that aren't NaNs. $\endgroup$ Commented May 5, 2018 at 22:00
  • $\begingroup$ mask is not much meaningful in case of large area missing. $\endgroup$
    – irfan
    Commented May 7, 2018 at 0:02

1 Answer 1


You could fill the gaps with the analysis products of numerical weather prediction. NCAR for example (RDA UCAR) hosts the NCEP North American Regional Reanalysis (NARR) with data from 1979 to 2018 including snow cover (NARR) in 3-hourly intervals.

But I would guess it depends on your goal: You can make an educated guess (bayesian approach, combining measured and predicted variables) about the true state of the snow cover, but what was not measured can not be pulled out of nowhere.

  • $\begingroup$ "what was not measured can not be pulled out of nowhere." I love it! Perhaps some day I'll find a place to use this again, and will cite you ;-) $\endgroup$
    – uhoh
    Commented May 7, 2018 at 5:08
  • $\begingroup$ WE do not have the measure data of the study area, so have to deal within the satellite product. Convolution could be a potential method the squeeze the gap. $\endgroup$
    – irfan
    Commented May 7, 2018 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.