table2geo: Make table-like array to 2d geo-like array

Description Usage Arguments Value

View source: R/nc4_relevents.R

Description

Make the table-like data to grid-like data. For example, an arrray has three dimensions, station, height and time. Then it transfrom the data into a four dimensions data, with longitude, latitude, height and time as dimensions. If the original data is a 2d data (grid and time) then it would turn it to a 3d array. the coordinates of the grids must be grid-like.

Usage

1
table2geo(arr, x, y, csize = NULL, dimpnt = NULL, dgt = 5)

Arguments

arr

The array of the data to be transform.

x, y

Coordinates of the grids.

y

Coordinates of the y dimension.

csize

Cell size of the grids.

dimpnt

Site of the dimension difine the location of grids.

Value

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


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