Description Usage Arguments Details Value Author(s) Examples

View source: R/sl.griddes2neighmat.R

Read longitude and latitude information (nodes and boundary vertices) from a CDO grid description file of an unstructured triangular mesh and derive neighbourhood and other information.

1 | ```
sl.griddes2neighmat(CDOgriddes, critnum.neigh = 2, critnum.coast = 1)
``` |

`CDOgriddes` |
a character providing the system location of the CDO grid description file (NetCDF format). |

`critnum.neigh` |
an integer needed to decide whether any two nodes are neighbours; nodes need to have at least |

`critnum.coast` |
an integer needed to decide whether a node is coastal: if any of the corresponding boundary vertices has less than |

For each node given in the CDO mesh description the boundary vertices span a polygon that defines the 'stamp' of that node, that is, the patch over which the node value is assumed to be valid ('finite volume' interpretation). In this function the longitude and latitude information of the boundary vertices are used to derive the neighbourhood (and other) information. Note that the boundary polygon is not identical with what is usually referred to as an 'element': the latter is constructed by three nodes, whereas the boundary polygon consists of vertices surrounding each node, e.g., the edge medians and element centroids.

`lat` |
a vector of length |

`lon` |
a vector of length |

`neighmat` |
a matrix of size |

`Nneigh` |
a vector of size |

`is.coast` |
a vector of size |

`critnum.neigh` |
an integer identical with the equally named function argument. |

`critnum.coast` |
an integer identical with the equally named function argument. |

Helge Goessling

1 | ```
## To be provided ...
``` |

helgegoessling/spheRlab documentation built on Sept. 10, 2018, 12:50 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.