Learn R Programming

geoviz (version 0.2.2)

crop_raster_track: Crops a raster into a rectangle surrounding a set of lat long points

Description

Crops a raster into a rectangle surrounding a set of lat long points

Usage

crop_raster_track(
  raster_input,
  lat_points,
  long_points,
  width_buffer = 1,
  increase_resolution = 1
)

Arguments

raster_input

a raster

lat_points

a vector of WGS84 latitudes

long_points

a vector of WGS84 longitudes

width_buffer

buffer distance around the provided points in km

increase_resolution

optional multiplier to increase number of cells in the raster. Default = 1.

Value

cropped raster

Examples

Run this code
# NOT RUN {
crop_raster_track(example_raster(), example_igc()$lat, example_igc()$long)
# }

Run the code above in your browser using DataLab