powered by
This function will retrieve the position of a vertex or a face on a hexagrid or trigrid object.
hexagrid
trigrid
pos(gridObj, names, output = "polar")
A numeric matrix.
numeric
a (hexagrid or trigrid) Icosahedral grid object.
(character) Vector of the names that are to be looked up.
character
(character) The coordinate system in which the names are to be shown: use "polar" for longitude-latitude and "cartesian" for XYZ output.
"polar"
"cartesian"
Vertex and face names can be mixed in a single names argument.
names
g <- trigrid(c(4,4)) pos(g, c("F2", "P6", "dummyname"))
Run the code above in your browser using DataLab