View source: R/convert2DtoGridDF.R
convert2DtoGridDF | R Documentation |
Function to create a tibble tibble representing a ROMS 2d spatial variable.
convert2DtoGridDF(m, name = "value")
m |
- matrix (xi x eta) from call to |
name |
- name for the 'value' column (defaults to "value") |
Creates a tibble from a matrix representing a ROMS 2d spatial variable. The matrix should (probably) represent the full xi,eta dimensions of the ROMS model. Any decimation should be done afterward on the resulting tibble. This will ensure the xi, eta indices in the dataframe correspond to the correct grid cells in the original output.
The returned sf object has columns:
ID - string "xi_eta"
xi - index value
eta - eta index value
'name' - matrix value at '[xi,eta]'
A tibble tibble object representing the grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.