crop_raster_square: Crops a raster and returns a smaller square raster

Description Usage Arguments Value Examples

View source: R/crop_raster_square.R

Description

Crops a raster and returns a smaller square raster

Usage

1
crop_raster_square(rasterIn, lat, long, square_km, increase_resolution = 1)

Arguments

rasterIn

a raster

lat

WGS84 latitude of the centre of the cropped square

long

WGS84 longitude of the centre of the cropped square

square_km

length of one side of the square in km

increase_resolution

optional multiplier to increase number of cells in the raster

Value

A cropped raster

Examples

1
crop_raster_square(example_raster(), lat = 54.513293, long = -3.045598, square_km = 0.01)

neilcharles/geoviz documentation built on May 6, 2020, 9:06 p.m.