Skip to content

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

Development

Successfully merging this pull request may close these issues.

lat_lon_grid_deltas (and in turn xarray grid argument magic) fails silently on xarray input with missing lat/lon units due to incorrect unit conversion

2 participants