BUG: Preserve bounds when resampling merge inputs#932
Draft
sapunyangkut wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root cause
RasterioDatasetDuck.readcorrectly cropped the source withisel_window, but its shape-mismatch branch discarded that crop and reprojected the full source using the full-source transform. With fractional bounds, this sampled from the dataset origin instead of the requested window.Closes #859.
Validation
The preserved exact-base-SHA validation package records:
git diff --check: passedFor this publication worktree, the 70-entry evidence manifest and the production/test patch were reverified; AST parsing, Black, Flake8, and
git diff --checkalso passed. The currently installed Python environment does not includerasterioandxarray, so the targeted pytest command stopped during test configuration and no fresh pytest pass is claimed. No dependency changes are included.Checklist
boundsinmerge_arrays#859docs/history.rstAI assistance disclosure
OpenAI Codex prepared the implementation, regression test, validation record, and pull request description on behalf of @sapunyangkut. The AI-assisted nature of this contribution is disclosed here for maintainer review.