getWRS: Get WRS

Description Usage Arguments Value Author(s) Examples

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

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

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.

Value

SpatialPolygonsDataFrame, or set of GADM units.

Author(s)

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

Examples

1
2
3
4
5
load(system.file('cchaira_roi.RData',package = 'ecochange'))
 
 wrs_cchaira <- suppressWarnings(getWRS(cchaira_roi))
     plot(wrs_cchaira)
 

ecochange documentation built on Sept. 8, 2021, 5:09 p.m.