[GRASS-git] [OSGeo/grass-addons] c5acec: r.windfetch: add compass directions, fixes (#1476)
Anna Petrasova
noreply at github.com
Tue Sep 9 19:08:38 PDT 2025
Branch: refs/heads/grass8
Home: https://github.com/OSGeo/grass-addons
Commit: c5acecd432fb42dde00faf0618817896bb6e8f48
https://github.com/OSGeo/grass-addons/commit/c5acecd432fb42dde00faf0618817896bb6e8f48
Author: Anna Petrasova <kratochanna at gmail.com>
Date: 2025-09-09 (Tue, 09 Sep 2025)
Changed paths:
M src/raster/r.windfetch/r.windfetch.py
M src/raster/r.windfetch/testsuite/test_r_windfetch.py
Log Message:
-----------
r.windfetch: add compass directions, fixes (#1476)
* Added -c flag to return the directions clockwise from N (useful for wind roses), tests added
* Fix minor directions - previously certain combinations of step and minor_step resulted in error, now the step for r.horizon is computed correctly. This should not influence previous results. I added tests.
* Currently underlying tool r.horizon returns 0 distance when no horizon is found (e.g. no land along the direction). This doesn't work well for this tool, so this PR is adding internally a one-cell boundary to the input raster to ensure distance is always returned. This potentially changes (corrects) the results depending on the specific position of land and the coordinate.
* Added documentation for compass flag, add note about points falling on water vs land.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications
More information about the grass-commit
mailing list