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.
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).
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.