geo2table: Make 2d grid-like data to station-like table data

Description Usage Arguments Value

View source: R/nc4_relevents.R

Description

Make the grid-like data to table-like data. For example, an nc data has four dimensions, longitude, latitude, height and time. Then it transfrom the data into a three dimensions data, with grid, height and time as dimensions. If the original data is a three dimension data (x, y and time) then it would turn it to a table, each row is a time step while each column is a grid.

Usage

1
2
geo2table(arr, dimxy = NULL, x = NULL, y = NULL, mask = NULL,
  xy = NULL)

Arguments

arr

The array of the data to be transform.

dimxy

Which dimensions are the x and y. Default c(1, 2), which means the first and second dimensions are x and y.

x

Coordinates of the x dimension.

y

Coordinates of the y dimension.

mask

An matrix with the same dim of x and y, marking which the grids to be transform (NA means not be transform).

xy

A series of coordinates of the grid cells to be transform.

Value

An list, including the array tranformed, and the corresponding coordinates.


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