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

Add unit support for reduce_point_density #1132

Merged
merged 2 commits into from Aug 26, 2019

Conversation

zbruick
Copy link
Contributor

@zbruick zbruick commented Aug 21, 2019

Description Of Changes

Adds unit support reduce_point_density. This converts all units to meters before passing to the kdtree. If units aren't provided, meters are assumed.

Checklist

@zbruick zbruick added this to the 0.11 milestone Aug 21, 2019
@zbruick zbruick added Area: Calc Pertains to calculations Area: Units Pertains to unit information Type: Enhancement Enhancement to existing functionality labels Aug 21, 2019
@dopplershift
Copy link
Member

For consistency with the rest of the library, we should also be handling units on the x,y values if someone provides values with units attached.

@zbruick
Copy link
Contributor Author

zbruick commented Aug 26, 2019

Attempted to handle units for points. Let me know if I didn't do this as desired.

@dopplershift
Copy link
Member

Simpler than I expected this to be. Looks good.

@dopplershift dopplershift merged commit a739d31 into Unidata:master Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Calc Pertains to calculations Area: Units Pertains to unit information Type: Enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Units for reduce_point_density
2 participants