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

Weighted Mean Functionality #826

Open
philipc2 opened this issue Jun 28, 2024 · 1 comment · May be fixed by #833
Open

Weighted Mean Functionality #826

philipc2 opened this issue Jun 28, 2024 · 1 comment · May be fixed by #833
Assignees

Comments

@philipc2
Copy link
Member

Add support for weighted means

Face Centered Variables

  • Use the Face Area as a weight

Edge Centered Variables

  • Use the Edge Magnitude as a weight
@philipc2
Copy link
Member Author

philipc2 commented Jun 28, 2024

Possible code for a weighted face average:

# (dask * numpy) / (numpy) ? 
(self.data * self.uxgrid.face_areas) / self.uxgrid.face_areas.sum()

@philipc2 philipc2 moved this from 📚 Backlog to 📝 To-Do in UXarray Development Jun 30, 2024
@erogluorhan erogluorhan moved this from 📝 To-Do to 🏗 In progress in UXarray Development Jul 15, 2024
@philipc2 philipc2 linked a pull request Aug 12, 2024 that will close this issue
@philipc2 philipc2 linked a pull request Aug 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

2 participants