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

Rewrite coords #304

Merged
merged 6 commits into from
Dec 19, 2024
Merged

Rewrite coords #304

merged 6 commits into from
Dec 19, 2024

Conversation

larsbuntemeyer
Copy link
Contributor

@larsbuntemeyer larsbuntemeyer commented Dec 13, 2024

Add rewrite_coords Function to Correct Rounding Errors in Dataset Coordinates

Summary

This PR introduces a new function, rewrite_coords, to the domain.py module. The function is designed to correct rounding errors in dataset coordinates, ensuring consistency and comparability with other datasets.

Key Features

  • Rewrites Coordinates: Supports rewriting X, Y, longitude, and latitude coordinates.
  • Domain Information: Utilizes domain-specific grid information if available.
  • Flexible Options: Allows specifying which coordinates to rewrite (xy, lonlat, or all).
  • Interpolation Method: Supports different reindexing methods (e.g., nearest, linear).

Tests

  • Added tests for rewrite_coords function to verify correct rewriting of coordinates with typical precision issues.

@larsbuntemeyer larsbuntemeyer merged commit dcfa641 into main Dec 19, 2024
13 checks passed
@larsbuntemeyer larsbuntemeyer deleted the rewrite_coords branch December 19, 2024 12:18
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.

1 participant