Learn R Programming

ecochange (version 2.9.3.1)

getWRS: Get WRS

Description

This function processes regions of interest (a polygon geometry or GADM unit) to find corresponding Landsat Path/Row World Reference System (WRS) polygons. This function is internally implemented by getrsp

Usage

getWRS(roi = NULL, path = tempdir(), 
    ...)

Value

SpatialPolygonsDataFrame, or set of GADM units.

Arguments

roi

SpatialPolygonsDataFrame; or character; or NULL. Region of interest. This can be whether 1) a polygon geometry; or 2) the name of a GADM unit (see getGADM); or 3) a NULL value. Default NULL makes the function to print a list of GADM units.

path

character. Path name indicating where the WRS data are processed.

...

Additional arguments in getGADM.

Author

Wilson Lara Henao <wilarhen@gmail.com> [aut, cre], Victor Gutierrez-Velez [aut], Ivan Gonzalez [ctb], Maria C. Londono [ctb]

Examples

Run this code
load(system.file('cchaira_roi.RData',package = 'ecochange'))
 # \donttest{
 wrs_cchaira <- getWRS(cchaira_roi)
     plot(wrs_cchaira)
 # }

Run the code above in your browser using DataLab