grid2points: Convert the grid data (save as matrix) to points.

Description Usage Arguments Value

View source: R/vic_relevents.R

Description

Conver the grid data to points, showed as a table, with the columns of coordinates for each point and a column for their value.

Usage

1
2
grid2points(grid, x = NULL, y = NULL, csize = NULL, xcor = NULL,
  ycor = NULL, NA_value = NULL, y_rev = FALSE)

Arguments

grid

A matrix of the gridded data.

x

X coordinates for each column of the grid.

y

Y coordinates for each column of the grid.

csize

Size of each gridcell.

xcor

X coordinate of the southwest corner of the grid.

xcor

Y coordinate of the southwest corner of the grid.

Value

A table of the points, including x and y coordinate and the values, converted from the grid.


Sibada/sibadaR documentation built on Jan. 31, 2020, 6:40 p.m.