View source: R/array3Dto2Dmat.R
mat2Dto3Darray | R Documentation |
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.
mat2Dto3Darray(mat2D, x, y)
mat2D |
A 2D matrix with time in rows and lonlat in columns, as returned
by |
x |
unique X coordinates of the points, in ascending order |
y |
As argument |
The function is the inverse of array3Dto2Dmat
A 3-dimensional array with the dimensions ordered: [time,lat,lon]
J. Bedia
array3Dto2Dmat
, which performs the inverse operation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.