Learn R Programming

ecochange (version 2.9.3.3)

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 [aut, cre] (<https://orcid.org/0000-0003-3527-1380>), Victor Gutierrez-Velez [aut] (<https://orcid.org/0000-0003-1338-2020>), Ivan Gonzalez [ctb] (<https://orcid.org/0000-0002-0313-398X>), Maria C. Londono [ctb] (<https://orcid.org/0000-0002-2317-5503>)

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