mat2Dto3Darray: Conversion 2D matrix into a 3D array

View source: R/array3Dto2Dmat.R

mat2Dto3DarrayR Documentation

Conversion 2D matrix into a 3D array

Description

Converts a 2D matrix of the form [time, lonlat] to a 3D array of the form [time,lat,lon], in this order. Mainly for PCA analysis and grid reconstruction.

Usage

mat2Dto3Darray(mat2D, x, y)

Arguments

mat2D

A 2D matrix with time in rows and lonlat in columns, as returned by array3Dto2Dmat

x

unique X coordinates of the points, in ascending order

y

As argument x, for the Y coordinates

Details

The function is the inverse of array3Dto2Dmat

Value

A 3-dimensional array with the dimensions ordered: [time,lat,lon]

Author(s)

J. Bedia

See Also

array3Dto2Dmat, which performs the inverse operation.


SantanderMetGroup/transformeR documentation built on Oct. 28, 2023, 5:26 a.m.