align_with_target_res: Calculate resolution of one coordinate system for points in...

Description Usage Arguments Value

Description

Calculate resolution of one coordinate system for points in their coordinate system transformed to a target coordinate system

Usage

1
align_with_target_res(res_from, crs_from, sp, crs_sp, crs_to)

Arguments

res_from

A numeric vector of length two. The resolution in x and y direction in the coordinate system crs_from.

crs_from

A sp::CRS object. The coordinate system of res_from.

sp

A sp::SpatialPoints object. Cell center points for which new resolutions will be calculated.

crs_sp

A sp::CRS object. The coordinate system of sp.

crs_to

A sp::CRS object. The coordinate system in which the resulting resolution will be calculated.

Value

A numeric vector of length two (if resolution is constant for each point) or a matrix with two columns for the x- and y-resolutions per row for each point.


Burke-Lauenroth-Lab/SoilWat_R_Wrapper documentation built on May 6, 2019, 8:52 a.m.