getWRS {ecochange}R Documentation

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(), 
    ...)

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 [ctb], Maria C. Londono [ctb]

Examples

load(system.file('cchaira_roi.RData',package = 'ecochange'))
 
 wrs_cchaira <- getWRS(cchaira_roi)
     plot(wrs_cchaira)
 

[Package ecochange version 2.9.3.1 Index]