Skip to content

Remove rioxarray dependency#46

Merged
dcherian merged 6 commits intomainfrom
remove-rioxarray
Jul 2, 2025
Merged

Remove rioxarray dependency#46
dcherian merged 6 commits intomainfrom
remove-rioxarray

Conversation

@dcherian
Copy link
Copy Markdown
Contributor

@dcherian dcherian commented Jun 30, 2025

TODO:

@dcherian dcherian marked this pull request as draft June 30, 2025 21:18
@dcherian dcherian force-pushed the remove-rioxarray branch 8 times, most recently from b57caba to fb36168 Compare June 30, 2025 23:37
@dcherian dcherian marked this pull request as ready for review July 1, 2025 00:59
@dcherian dcherian force-pushed the remove-rioxarray branch from fb36168 to d42f267 Compare July 1, 2025 01:09
Comment thread src/rasterix/utils.py
Comment on lines +63 to +64
dx = (x[1] - x[0]).item()
dy = (y[1] - y[0]).item()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we check the coordinate labels for uniform spacing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure there's a good way to do it. Presumably that's why rioxarray also doesn't do it.

@dcherian dcherian force-pushed the remove-rioxarray branch from d42f267 to f4cd46a Compare July 1, 2025 20:42
@dcherian dcherian force-pushed the remove-rioxarray branch from 8f2b1be to 6398580 Compare July 1, 2025 20:53
@dcherian dcherian force-pushed the remove-rioxarray branch from 9015fa8 to cef89ee Compare July 1, 2025 21:09
fmt = f".{decimals}f"
return " ".join(f"{num:{fmt}}" for num in gt)
else:
return " ".join(map(str, gt))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@scottyhq does this look useful enough to you. That way a user can write it to whichever attribute they want to

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yeah, seems good!

@dcherian dcherian merged commit bfe732a into main Jul 2, 2025
9 checks passed
@dcherian dcherian deleted the remove-rioxarray branch July 2, 2025 14:54
@dcherian dcherian mentioned this pull request Jul 2, 2025
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.

remove rioxarray dependency by detecting affine parameters

3 participants