Skip to content

Fix Terracotta tile misalignment - #37

Open
AGLJCM wants to merge 10 commits into
mainfrom
ajc/fix-mercator-proj
Open

AGLJCM wants to merge 10 commits into
mainfrom
ajc/fix-mercator-proj

Conversation

@AGLJCM

@AGLJCM AGLJCM commented Apr 1, 2026

Copy link
Copy Markdown
  • Add tests for TerracottaBackend to ensure correct coords projection when writing to Terracotta
  • fix underspecified Mercator projection in TerracottaBackend

assert global_tif.res == pytest.approx(africa_tif.res)

@pytest.mark.parametrize("grid_name", GRID_SPECS)
def test_terracotta_returns_same_tile_values_for_global_and_africa_scopes(tmp_path, grid_name):

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.

I think an easier way to test this would be just to verify that the reprojected xarrays are the same and their x/y coordinates are subsets of one another

Arthur Jacquiau-Chamski added 2 commits April 11, 2026 00:15
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