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

Make sure lat/lon values are rounded to uniform precision #25

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

hannahker
Copy link
Collaborator

@hannahker hannahker commented Aug 22, 2024

The PR ensures that all lat/lon values are rounded to the same level of precision in output datasets.

This is in response to an issue between the mars and aws SEAS5 outputs. I'm still not sure exactly where this was introduced, but the output COGs from the mars data had lat/lon values that were very slightly (ie. 10e-13 order of magnitude) off from the AWS outputs (which had coords precise to 1 decimal point). This caused issues when trying to concatenate the datasets. This discrepancy is in spite of totally matching CRS and input extents.

See more exploration in the .md file included in this PR.

I'm not convinced it's a perfect solution, but rounding to 4 decimal places seems to fix the issue, and I don't think gets rid of any precision that we actually care about.

Closes #14

Copy link
Collaborator

@isatotun isatotun left a comment

Choose a reason for hiding this comment

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

LGTM. I'd just also use the opportunity to change the leftover config that can get picked up from env variables.

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.

2 participants