powered by
Crops a raster and returns a smaller square raster
crop_raster_square(rasterIn, lat, long, square_km, increase_resolution = 1)
a raster
WGS84 latitude of the centre of the cropped square
WGS84 longitude of the centre of the cropped square
length of one side of the square in km
optional multiplier to increase number of cells in the raster
A cropped raster
# NOT RUN { crop_raster_square(example_raster(), lat = 54.513293, long = -3.045598, square_km = 0.01) # }
Run the code above in your browser using DataLab