Description Usage Arguments Value Author(s) References Examples
Remove clouds from a Landsat TM/ETM+ image.
1 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.