Skip to content

Add tolerance support for align/combine/concat operations#73

Merged
dcherian merged 8 commits intomainfrom
tolerance-align
Feb 5, 2026
Merged

Add tolerance support for align/combine/concat operations#73
dcherian merged 8 commits intomainfrom
tolerance-align

Conversation

@dcherian
Copy link
Copy Markdown
Contributor

@dcherian dcherian commented Feb 5, 2026

Closes #16

Summary

  • Add set_options/get_options context manager for configuring transform tolerance
  • Add BoundingBox.isclose() method for tolerance-aware comparison
  • Default transform_rtol=1e-12 handles typical floating-point noise in geotransforms

Usage

import rasterix

with rasterix.set_options(transform_rtol=1e-9):
    result = xr.concat([ds1, ds2], dim='x')

🤖 Generated with Claude Code

dcherian and others added 8 commits February 5, 2026 11:28
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dcherian dcherian merged commit 5a954fc into main Feb 5, 2026
11 checks passed
@dcherian dcherian deleted the tolerance-align branch February 5, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adressing floating-point issues

1 participant