removeClouds {RemoteSensing} | R Documentation |
Remove clouds from a Landsat TM/ETM+ image.
removeClouds(x, filename='', ...)
x |
Landsat object with callibrated reflectance and thermal values |
filename |
output filename (optional) |
... |
additional arguments passed on to writeRaster |
RasterLayer
Alice Laborte
Irish, R.R., undated, Landsat 7 automatic cloud cover assessment. http://landsathandbook.gsfc.nasa.gov/handbook/pdfs/ACCA_SPIE_paper.pdf
## Not run: #create Landsat object from metadata file (that has the necessary parameters) metafile <- system.file("external/L71129046_04620080329_MTL.txt", package="RemoteSensing") img <- landsat(metafile) #calculate reflectance img <- dn2ref(img) #calculate temperature img <- dn2temp(img) #mask out clouds masked <- removeClouds(img) ## End(Not run)