Learn R Programming

hexify (version 0.3.8)

hexify_cell_to_lonlat: Convert cell ID to longitude/latitude

Description

Converts cell identifiers back to cell center coordinates. This is the inverse of hexify_lonlat_to_cell.

Usage

hexify_cell_to_lonlat(cell_id, resolution, aperture)

Value

Data frame with lon_deg and lat_deg columns

Arguments

cell_id

Numeric vector of cell IDs (1-based)

resolution

Grid resolution (integer >= 0)

aperture

Grid aperture (3, 4, or 7)

See Also

cell_to_lonlat for the recommended S4 interface, hexify_lonlat_to_cell for the forward operation

Other coordinate conversion: hexify_cell_id_to_quad_ij(), hexify_cell_to_icosa_tri(), hexify_cell_to_plane(), hexify_cell_to_quad_ij(), hexify_cell_to_quad_xy(), hexify_grid_cell_to_lonlat(), hexify_grid_to_cell(), hexify_icosa_tri_to_plane(), hexify_icosa_tri_to_quad_ij(), hexify_icosa_tri_to_quad_xy(), hexify_lonlat_to_cell(), hexify_lonlat_to_plane(), hexify_lonlat_to_quad_ij(), hexify_quad_ij_to_cell(), hexify_quad_ij_to_icosa_tri(), hexify_quad_ij_to_xy(), hexify_quad_xy_to_cell(), hexify_quad_xy_to_icosa_tri(), hexify_roundtrip_test()

Examples

Run this code
coords <- hexify_cell_to_lonlat(1702, resolution = 5, aperture = 3)

Run the code above in your browser using DataLab