bbox_tran: Generate bounding box for Neotoma

Description Usage Arguments Value Examples

Description

From a vegetation matrix with x and y columns (or lat/long), generate a bounding box to be used for the loc parameter in the neotoma function get_dataset().

Usage

1
bbox_tran(x, coord_formula = "~ x + y", from, to)

Arguments

x

A data.frame or matrix with the vegetation data and its coordinates.

coord_formula

The formula, as a string

from

The object proj4 string (e.g., +init=epsg:4121 +proj=longlat +ellps=GRS80).

to

The target proj4 projection string (e.g., +init=epsg:3175).

Value

A numeric vector, of length 4.

Examples

1
2
3
4
5
6
7
{
  data(plss_vegetation)

  pol_box <- bbox_tran(plss_vegetation, '~ x + y',
    '+init=epsg:3175',
    '+init=epsg:4326')
}

PalEON-Project/stepps-cal documentation built on May 14, 2019, 8:20 a.m.