powered by
Crops a raster into a rectangle surrounding a set of lat long points
crop_raster_track( raster_input, lat_points, long_points, width_buffer = 1, increase_resolution = 1 )
a raster
a vector of WGS84 latitudes
a vector of WGS84 longitudes
buffer distance around the provided points in km
optional multiplier to increase number of cells in the raster. Default = 1.
cropped raster
# NOT RUN { crop_raster_track(example_raster(), example_igc()$lat, example_igc()$long) # }
Run the code above in your browser using DataLab