Description Usage Arguments Details Value Author(s) Examples

View source: R/sl.elemfull2elemsub.R

Generate the elements (triangles) of an unstructured-mesh node subset based on (i) the elements (triangles) of a corresponding larger (full) unstructured mesh and (ii) the latitude and longitude information for both the full mesh and the subset. Can be used to work with regionally truncated data (e.g. produced by '`cdo sellonlatbox ...`

').

1 | ```
sl.elemfull2elemsub(nodes.full.lon, nodes.full.lat, nodes.sub.lon, nodes.sub.lat, elem.full, tolerance = 0)
``` |

`nodes.full.lon` |
a vector of size |

`nodes.full.lat` |
a vector of size |

`nodes.sub.lon` |
a vector of size |

`nodes.sub.lat` |
a vector of size |

`elem.full` |
an |

`tolerance` |
a scalar specifying the tolerance by which the matching longitudes and latitudes may be displaced. Default is |

By matching nodes based on their longitude and latitude information, the triangular elements of a full mesh that are contained in a subset of nodes are identified. This enables one to work with regionally truncated data (e.g. produced by '`cdo sellonlatbox ...`

'). For a particular subset (truncation), this function needs to be run only once and the resulting element matrix can be used for any analyses of that subset.

`elem.sub` |
an |

`full2sub` |
a vector of length |

`sub2full` |
a vector of length |

Helge Goessling

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

helgegoessling/spheRlab documentation built on June 6, 2018, 5:22 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.