powered by
Creates an empty raster which extents corresponds to the circle specified by center coordinates, radius and optional buffer size.
circle2Raster(X, Y, radius, resolution = 0.5, buffer = 0.5, ...)
A SpatRaster object
numeric. easting coordinate of plot center in meters
numeric. northing coordinate of plot center in meters
numeric. plot radius in meters
numeric. raster resolution in meters
numeric. buffer to be added to plot radius in meters
other parameters to pass to rast (e.g. crs)
rast
circle2Raster(100, 100, 20, 1, 5)
Run the code above in your browser using DataLab