createAoi: Create aoi polygon from topleft and bottomright coordinates

Description Usage Arguments Value Author(s) See Also Examples

View source: R/water_netRadiation.G.R

Description

An AOI (Area of Interest) is created based on two points (topleft and bottomright) using a coordinate reference system.

Usage

1
createAoi(topleft, bottomright, EPSG)

Arguments

topleft

a vector with topleft x,y coordinates

bottomright

a vector with bottomright x,y coordinates

EPSG

Coordinate reference system EPSG code

Value

object of class SpatialPolygons

Author(s)

Guillermo Federico Olmedo

Fonseca-Luengo, David

See Also

Other support functions: checkSRTMgrids(), prepareSRTMdata()

Examples

1
2
3
4
tl <- c(493300, -3592700)
br <- c(557200, -3700000) 
aoi <- createAoi(topleft = tl, bottomright=br, EPSG=32619)
plot(aoi)

midraed/water documentation built on Feb. 20, 2022, 7:30 a.m.