Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
75d832e
Neighborhood filter
ahijevyc Sep 7, 2024
b850bc4
Merge remote-tracking branch 'upstream/main' into neighborhood_filter
ahijevyc Sep 7, 2024
8ec0193
ruff recommendations
ahijevyc Sep 9, 2024
5605949
added Callable to Type checking
ahijevyc Sep 9, 2024
70ba961
Merge branch 'main' into ahijevyc/neighborhood_filter
ahijevyc Sep 9, 2024
0c7bc1e
np.vstack().T faster than np.c
ahijevyc Sep 9, 2024
d6d8a33
Fix some comments
ahijevyc Sep 9, 2024
47b9cda
Merge branch 'main' into ahijevyc/neighborhood_filter
ahijevyc Sep 17, 2024
f75db0d
Merge branch 'main' into ahijevyc/neighborhood_filter
aaronzedwick Oct 1, 2024
bddd2fa
Merge branch 'main' into ahijevyc/neighborhood_filter
ahijevyc Oct 29, 2024
a0b6361
Merge branch 'main' into ahijevyc/neighborhood_filter
ahijevyc Mar 17, 2025
6c59af7
missing imports
ahijevyc Mar 17, 2025
67d0c11
Merge branch 'main' into ahijevyc/neighborhood_filter
philipc2 Mar 18, 2025
8979745
Merge branch 'main' into ahijevyc/neighborhood_filter
ahijevyc Mar 19, 2025
a8875cd
Merge branch 'main' into ahijevyc/neighborhood_filter
ahijevyc May 28, 2025
f4af498
Merge branch 'UXARRAY:main' into ahijevyc/neighborhood_filter
ahijevyc Aug 4, 2025
45407aa
Merge branch 'main' into ahijevyc/neighborhood_filter
erogluorhan Sep 3, 2025
9fa100c
Merge branch 'main' into ahijevyc/neighborhood_filter
ahijevyc Jan 21, 2026
56e7821
Merge branch 'main' into ahijevyc/neighborhood_filter
erogluorhan Feb 26, 2026
14c37b7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 26, 2026
a37b88f
Update dataset.py to address pre-commit errors
erogluorhan Feb 26, 2026
47662c1
Merge remote-tracking branch 'origin/main' into ahijevyc/neighborhood…
rajeeja Jul 24, 2026
02ca8b7
Address review feedback for neighborhood_filter
rajeeja Jul 24, 2026
42c7872
Merge branch 'main' into ahijevyc/neighborhood_filter
erogluorhan Jul 27, 2026
b47540b
Fix neighborhood_filter dimension assert to not access .dims on ndarray
rajeeja Jul 27, 2026
e50ebbd
Fix neighborhood_filter docstrings: radius is always in degrees, not …
rajeeja Jul 27, 2026
68fd51f
Merge remote-tracking branch 'ahijevyc-fork/ahijevyc/neighborhood_fil…
rajeeja Jul 27, 2026
50cc6c6
Fix neighborhood_filter bugs and address PR review feedback
rajeeja Jul 28, 2026
5995f03
Fix _copy() deep default + optimize neighborhood_filter memory usage
rajeeja Jul 28, 2026
1d896ce
Add docstring Examples/See Also + expand neighborhood-filter notebook
rajeeja Jul 28, 2026
29f1873
Merge branch 'main' into ahijevyc/neighborhood_filter
rajeeja Jul 28, 2026
b37974d
Fix pre-commit: trailing newlines + ruff import sort/format
rajeeja Jul 28, 2026
ed35c01
Merge branch 'UXARRAY:main' into ahijevyc/neighborhood_filter
ahijevyc Jul 29, 2026
a2aff9c
Merge remote-tracking branch 'origin/main' into ahijevyc/neighborhood…
rajeeja Aug 3, 2026
82b3ae2
Correct NaN rationale in neighborhood filter docs and comments
rajeeja Aug 3, 2026
cb364fa
Harden neighborhood filter tree selection and error handling
rajeeja Aug 3, 2026
5f33a72
Merge remote-tracking branch 'origin/main' into ahijevyc/neighborhood…
rajeeja Aug 4, 2026
b964260
941: gufunc for neighborhood filter
cmdupuis3 Aug 5, 2026
b613185
941: name reductions, reuse neighborhoods
cmdupuis3 Aug 5, 2026
c7d2711
941: some cleanup
cmdupuis3 Aug 5, 2026
c258e63
Merge main into ahijevyc/neighborhood_filter to resolve conflicts
rajeeja Aug 6, 2026
39479a1
Merge Chris Dupuis gufunc/Neighborhoods work into neighborhood_filter
rajeeja Aug 6, 2026
c240cd3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 6, 2026
728bf87
Merge branch 'main' into ahijevyc/neighborhood_filter
cmdupuis3 Aug 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ Methods
Grid.compute_face_areas
Grid.construct_face_centers
Grid.get_ball_tree
Grid.neighborhoods
Grid.get_kd_tree
Grid.get_spatial_hash
Grid.get_faces_containing_point
Expand Down Expand Up @@ -565,6 +566,30 @@ Azimuthal aggregations apply an aggregation (i.e. averaging) along circles of co
UxDataArray.azimuthal_mean


Neighborhood
~~~~~~~~~~~~

Neighborhood filters apply an aggregation (i.e. averaging) to all grid elements within a circular
neighborhood of a specified radius around each grid element.

.. autosummary::
:toctree: generated/

UxDataArray.neighborhood_filter
UxDataset.neighborhood_filter

Finding the neighbors is usually more expensive than reducing over them. To apply several
reductions at one radius, build the neighborhoods once and reduce over them repeatedly.

.. autosummary::
:toctree: generated/

Grid.neighborhoods
uxarray.grid.neighbors.Neighborhoods
uxarray.grid.neighbors.Neighborhoods.reduce
uxarray.grid.neighbors.Neighborhoods.n_neighbors


Zonal Average
~~~~~~~~~~~~~
.. autosummary::
Expand Down
Loading