Generic functions to get cell coordinates
rmf_cell_coordinates(...) # S3 method for dis rmf_cell_coordinates(dis, prj = rmf_get_prj(dis), include_faces = FALSE) # S3 method for huf rmf_cell_coordinates( huf, dis = NULL, prj = rmf_get_prj(dis), include_faces = FALSE ) rmf_get_cell_coordinates(...) # S3 method for dis rmf_get_cell_coordinates(dis, i, j, k, ...) # S3 method for huf rmf_get_cell_coordinates(huf, i, j, k, ...)
... | additional arguments passed to |
---|---|
dis | dis object, corresponding to the huf object |
prj | projection file object |
include_faces | logical; should face coordinates be included? |
huf | huf object |
i | row indices of required cell(s) |
j | column indices of required cell(s) |
k | layer indices of required cell(s) |
rmf_cell_coordinates
returns a list with with cell center x y and z coordinate as 3d arrays and optionally, the face coordinates of all cells
3d array with cell coordinates
rmf_get_cell_coordinates
returns a data frame with the coordinates of specified cells