Skip to contents

Find bounding box of data

Usage

get_bb(xyz)

# S3 method for class 'data.frame'
get_bb(in_xyz)

# S3 method for class 'SpatRaster'
get_bb(in_xyz)

Arguments

xyz

data.table (or data.frame) of points to downscale with columns "lon", "lat", "elev" and "id"

Value

numeric vector. Bounding box coordinates with order xmin, xmax, ymin, ymax (e.g. c(-122, -121, 50, 51)).