Skip to content

Conversation

@dopplershift
Copy link
Member

Description Of Changes

interpolate_to_grid, due to an off-by-one error, was not actually generating grids with the requested resolution. Instead, they had one fewer point than that needed to generate the requested resolution. The previous implementation calculated the number of steps needed, but essentially omitted the starting point.

In order to avoid regenerating a bunch of test data, I adjusted the test to request a resolution matching the previous reality.

This also cleans up the documentation for some of those internal functions.

Checklist

@dopplershift dopplershift added Type: Bug Something is not working like it should Area: Gridding Pertains to calculating values on a regular grid labels Sep 15, 2022
@dopplershift dopplershift added this to the September 2022 milestone Sep 15, 2022
@dopplershift dopplershift requested a review from a team as a code owner September 15, 2022 23:41
@dopplershift dopplershift requested review from dcamron and removed request for a team September 15, 2022 23:41
There was an off-by-one error in calculating the number of grid points
needed to meet the desired resolution. The previous code calculated the
number of steps, but did not include the starting point.

In order to avoid regenerating test data, the specified resolution in
the test was adjusted to match that actually given before.
@dcamron dcamron merged commit f6aac4c into Unidata:main Sep 20, 2022
@dopplershift dopplershift deleted the fix-2319 branch September 20, 2022 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Gridding Pertains to calculating values on a regular grid Type: Bug Something is not working like it should

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

hres of interpolate_to_grid not respected

2 participants