Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r.horizon: address incorrect number of rasters created #3411

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

petrasovaa
Copy link
Contributor

@petrasovaa petrasovaa commented Feb 8, 2024

Fixes #2582.
E.g. for start=0, end=12, step=5, three rasters are now generated (0, 5, 10) and not only 2 (because 12/5 = 2...) as was the case before.
Documentation is still valid, the interval is [start, end) as described there. Not sure if this should be backported, it is a bugfix, but it could break things (e.g. in QGIS, see the link in #2582).

This also speeds up the test significantly, there was no need to run r.horizon with full resolution if we are checking only the created raster names.

@petrasovaa petrasovaa added this to the 8.4.0 milestone Feb 8, 2024
@petrasovaa petrasovaa self-assigned this Feb 8, 2024
@github-actions github-actions bot added raster Related to raster data processing Python Related code is in Python C Related code is in C module labels Feb 8, 2024
Copy link
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed how it should behave. Thanks!

@petrasovaa petrasovaa added the bug Something isn't working label Feb 16, 2024
@petrasovaa petrasovaa merged commit aee050a into OSGeo:main Feb 16, 2024
25 checks passed
@agiudiceandrea
Copy link
Contributor

Thanks, Anna!

@neteler
Copy link
Member

neteler commented Feb 17, 2024

@petrasovaa Is this a backport candidate for G8.3?

@petrasovaa
Copy link
Contributor Author

@petrasovaa Is this a backport candidate for G8.3?

No

jadenabrams100 pushed a commit to ncsu-csc472-spring2024/grass-CI-playground that referenced this pull request Feb 21, 2024
E.g. for start=0, end=12, step=5, three rasters are now generated (0, 5, 10) and not only 2 (because 12/5 = 2...) as was the case before.This also speeds up the test significantly, there was no need to run r.horizon with full resolution if we are checking only the created raster names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C Related code is in C module Python Related code is in Python raster Related to raster data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] r.horizon: incorrect number of maps calculated
4 participants