Skip to content

v0.3.0

Compare
Choose a tag to compare
@ks905383 ks905383 released this 02 Apr 19:39
· 190 commits to main since this release

Performance upgrades

Various performance upgrades, particularly for working with high resolution grids.

In create_raster_polygons:

  • replacing the for-loop assigning pixels to polygons with a lambda apply
  • creating flexible buffer for subsetting to bounding box, replacing the hardcoded 0.1 degrees used previously with twice the max grid spacing

In aggregate:

  • an optional replacement of the aggregating calculation with a dot-product implementation (impl='dot_product' in pixel_overlaps() and aggregate()), which may improve performance in certain situations

Expanded functionality

Weightmaps can now be saved using wm.to_file() and loaded using xagg.core.read_wm(), and no longer have to be regenerated with each code run.

Bug fixes

Various bug fixes

What's Changed

  • speed improvement for high res grids in create_raster_polygons by @kerriegeil in #29
  • dot product implementation by @jsadler2 in #4
  • Speedup for large grids - mod gdf_pixels in create_raster_polgons by @kerriegeil in #30
  • implement making dot product optional, restoring default agg behavior by @ks905383 in #32
  • Implement a way to save weightmaps (output from pixel_overlaps) by @ks905383 in #33

New Contributors

Full Changelog: v0.2.6...v0.3.0