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

Ensure degree units by default for lat/lon in xarray #2852

Merged
merged 1 commit into from
Dec 23, 2022

Conversation

dopplershift
Copy link
Member

Description Of Changes

We intentionally want to assume degrees for our various lat/lon handling with e.g. lat_lon_grid_deltas, but for xarray we by default were giving 'dimensionless' units when no unit attribute is present (which can happen when attributes are dropped by various xarray functionality).

See also #2811, #2836, and #2848.

The solution here ended up being more clean than I feared. (cc @jthielen)

Checklist

@dopplershift dopplershift added Type: Bug Something is not working like it should Area: Units Pertains to unit information Area: Xarray Pertains to xarray integration labels Dec 23, 2022
@dopplershift dopplershift requested review from a team and jthielen as code owners December 23, 2022 02:11
@dopplershift dopplershift requested review from dcamron and removed request for a team December 23, 2022 02:11
@dopplershift dopplershift added this to the November 2022 milestone Dec 23, 2022
Copy link
Member

@dcamron dcamron left a comment

Choose a reason for hiding this comment

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

Phew!

@dcamron dcamron merged commit 64853bb into Unidata:main Dec 23, 2022
@dopplershift dopplershift deleted the lat-lon-units branch December 23, 2022 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Units Pertains to unit information Area: Xarray Pertains to xarray integration Type: Bug Something is not working like it should
Projects
None yet
2 participants