lansatRemoveClouds: Remove clouds

Description Usage Arguments Value Author(s) References Examples

Description

Remove clouds from a Landsat TM/ETM+ image.

Usage

1
removeClouds(x, filename='', ...)

Arguments

x

Landsat object with callibrated reflectance and thermal values

filename

output filename (optional)

...

additional arguments passed on to writeRaster

Value

RasterLayer

Author(s)

Alice Laborte

References

Irish, R.R., undated, Landsat 7 automatic cloud cover assessment. http://landsathandbook.gsfc.nasa.gov/handbook/pdfs/ACCA_SPIE_paper.pdf

Examples

 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)

RemoteSensing documentation built on Feb. 7, 2020, 3 p.m.