pos: Position of face centers and vertices on a grid

View source: R/grid-lookup.R

posR Documentation

Position of face centers and vertices on a grid

Description

This function will retrieve the position of a vertex or a face on a hexagrid or trigrid object.

Usage

pos(gridObj, names, output = "polar")

Arguments

gridObj

a (hexagrid or trigrid) Icosahedral grid object.

names

(character) Vector of the names that are to be looked up.

output

(character) The coordinate system in which the names are to be shown: use "polar" for longitude-latitude and "cartesian" for XYZ output.

Details

Vertex and face names can be mixed in a single names argument.

Value

A numeric matrix.

Examples

g <- trigrid(c(4,4))
pos(g, c("F2", "P6", "dummyname"))



icosa documentation built on March 31, 2023, 8:33 p.m.