powered by
Converts DGGS cell IDs back to geographic coordinates (cell centers).
cell_to_lonlat(cell_id, grid)
Data frame with lon_deg and lat_deg columns
Numeric vector of cell IDs
A HexGridInfo or HexData object
lonlat_to_cell for the forward operation
lonlat_to_cell
grid <- hex_grid(area_km2 = 1000) cells <- lonlat_to_cell(c(0, 10), c(45, 50), grid) coords <- cell_to_lonlat(cells, grid)
Run the code above in your browser using DataLab