How can I remove cloud value of the Landsat8? How can I estimate cloud values for eg: modis cloud values are from 700 to 800. By using R how can I estimate>

closed as unclear what you're asking by Paul, John Powell, BradHards, Hairy, Evil Genius Oct 6 '15 at 10:56

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Do you want to remove cloud from landsat or from modis? – Kersten Oct 5 '15 at 18:29
  • i need for landsat8 sir – user28536 Oct 6 '15 at 15:04

The best established Landsat cloud detection algorithm used today is fmask published by Zhu&Woodcock.

It is not written in R but in MATLAB, it can be downloaded as MATLAB code or as a compiled C executable. The source code however is openly available, so you could try to rewrite it in R (ceholden already did it for python).

  • 4
    Progress is being made on a R version of F-mask: bitbucket.org/droletg/fmask – Mikkel Lydholm Rasmussen Oct 6 '15 at 6:30
  • 1
    Simply run devtools::install_bitbucket("droletg/fmask.git") to install the R package as long as it is not on CRAN. All required functionality (i.e., cloud, cloud shadow, and snow mask) is included in the function fmask. – fdetsch Mar 8 '16 at 14:59

If you order your data through the USGS Earth Explorer via the USGS ESPA application you can use the issued cloud mask file with ending 'cfmask' or 'sr_cloud' (depending on which product you use).

These files simply contain bit keys for cloud presence. You cloud for example query these values with an if-statement and use the resulting dataframe as a mask in R.

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