gpat_create_grid: Grid polygon creator

View source: R/gpat_create_grid.R

gpat_create_gridR Documentation

Grid polygon creator

Description

Creates a polygon of a GeoPAT 2 grid based on the grid header

Usage

gpat_create_grid(x, brick = FALSE)

Arguments

x

A filepath to the GeoPAT 2 grid header file

brick

TRUE/FALSE; should a new grid polygon have a brick topology

Value

sf

Examples

header_filepath = system.file("rawdata/Augusta2011_grid100.hdr", package="rgeopat2")
my_grid = gpat_create_grid(header_filepath)
my_grid_brick = gpat_create_grid(header_filepath, brick = TRUE)

plot(my_grid)
plot(my_grid_brick, add = TRUE, border = "red", lwd = 3)


rgeopat2 documentation built on Sept. 18, 2023, 5:08 p.m.