Skip to content

Refactor to replace BatchedLatlonCoordinates with LatLonCoordinates in downscaling#1308

Open
AnnaKwa wants to merge 3 commits into
mainfrom
refactor/batched-latlon
Open

Refactor to replace BatchedLatlonCoordinates with LatLonCoordinates in downscaling#1308
AnnaKwa wants to merge 3 commits into
mainfrom
refactor/batched-latlon

Conversation

@AnnaKwa

@AnnaKwa AnnaKwa commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

The downscaling batches currently have a BatchedLatLonCoordinates object as metadata although the code assumes elsewhere that all batch elements have the same lat/lon coordinates (e.g. BatchData.lat_interval uses the first batch element's coords only).

This refactor removes the BatchedLatLonCoordinates class and replaces it with a regular LatLonCoordinates. This simplifies places in the code that reference self.latlon_coordinates.lat[0], self.latlon_coordinates.lon[0] etc.

@AnnaKwa AnnaKwa changed the title Refactor BatchedLatlonCoordinates Refactor to replace BatchedLatlonCoordinates with LatLonCoordinates in downscaling Jun 23, 2026
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