Skip to content

dggridR version 4.1.0

Latest

Choose a tag to compare

@SebKrantz SebKrantz released this 09 May 15:15
· 24 commits to master since this release
02cff44
  • dgconstruct() gains aperture = 7 for ISEA7H / FULLER7H hexagonal grids.
  • 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.
  • pkgdown site added at https://sebkrantz.github.io/dggridR/.