Skip to content

ENH: Check units in xarray and iris interfaces.#134

Open
DWesl wants to merge 6 commits intoajdawson:mainfrom
DWesl:check-units
Open

ENH: Check units in xarray and iris interfaces.#134
DWesl wants to merge 6 commits intoajdawson:mainfrom
DWesl:check-units

Conversation

@DWesl
Copy link
Copy Markdown

@DWesl DWesl commented Aug 16, 2025

A follow-up to my comment on #74.

The metadata of the output assumes the input winds are in meters per second and the earth's radius is in meters. This PR either checks (XArray) or ensures (iris) those units, and additionally adds units to the results of VectorWind.gradient where the input had units.

instead of rolling my own.

Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>
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.

4 participants