Commit 2961593
Update kernel latitude (#372)
* scale kernel to account for geographic projection
* scaling gaussian filter with latitude
* updating distance calc
* adding assert statement about size of filter
* Refactor haversine function and enhance grid spacing info extraction; update tests for weight generation and add new tests for elliptical kernel generation
* Fix weight generation logic by correcting filter coordinate range and enhancing assertions for non-zero pixel counts
* Enhance pixel count validation in fire kernel generation and update symmetry tests
- Added assertions to validate the number of non-zero pixels in the generated weights for fire ellipse kernels, ensuring they fall within a calculated range based on expected pixel counts.
- Updated test cases for kernel symmetry to check for approximate equality in pixel counts rather than strict equality, accommodating for potential discrepancies due to discrete grid offsets.
* Add output logging for kernel normalization, latitude dependence, and symmetry tests
---------
Co-authored-by: Anderson Banihirwe <axbanihirwe@ualr.edu>
Co-authored-by: Anderson Banihirwe <13301940+andersy005@users.noreply.github.com>1 parent bc53eee commit 2961593
File tree
4 files changed
+1869
-67
lines changed- notebooks
- ocr/risks
- tests/risks
4 files changed
+1869
-67
lines changed
0 commit comments