You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dgconstruct() gains aperture_type = "MIXED43" with num_aperture_4_res for ISEA43H / FULLER43H mixed-aperture grids.
dgconstruct() gains orient = "RANDOM" for a uniformly random icosahedral orientation (reproducible via set.seed()).
New dgneighbors(dggs, cells) returns the adjacent cell IDs for each input cell (hexagonal grids only).
New dgchildren(dggs, cells) returns the child cell IDs at the next finer resolution.
New dgparent(dggs, cells) returns the parent cell ID at the next coarser resolution.
New dgpoints_to_cells(dggs, lon, lat) maps lon/lat points to grid cells and returns an sf grid with optional per-cell counts.
New dgbin_points(dggs, lon, lat, values) aggregates point data into grid cells, returning per-cell count, mean, and/or total as a data frame.
dgearthgrid() and dgcellstogrid() gain a densify parameter to insert extra vertices along cell edges for smoother boundaries.
dgearthgrid() and dgcellstogrid() now materialize sf polygon grids through a native C implementation using R's C API, preserving DGGRID ring order and avoiding the previous s2/collapse polygon construction path. Illustrative conversion timings for full-earth grids improved from 3.854s to 0.150s at res 9 (~26x). This is achieved also via the wk package.