Grid information

grd_summary(grid)

Arguments

grid

A grd_xy(), grd_rct(), or other object implementing grd_*() methods.

Value

  • grd_summary() returns a list() with components xmin, ymin, xmax, ymax, nx, ny, dx, dy, width, and height.

Examples

grd_summary(grd(nx = 3, ny = 2))
#> $xmin
#> [1] 0
#> 
#> $ymin
#> [1] 0
#> 
#> $xmax
#> [1] 3
#> 
#> $ymax
#> [1] 2
#> 
#> $nx
#> [1] 3
#> 
#> $ny
#> [1] 2
#> 
#> $dx
#> [1] 1
#> 
#> $dy
#> [1] 1
#> 
#> $width
#> [1] 3
#> 
#> $height
#> [1] 2
#>