Skip to content

Commit

Permalink
Merge pull request #2184 from dopplershift/interp-docs
Browse files Browse the repository at this point in the history
Correct docs for search_radius in interpolate functions
  • Loading branch information
dcamron authored Nov 8, 2021
2 parents ebee96b + 9a94beb commit bc4e869
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/metpy/interpolate/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,16 @@ def interpolate_to_grid(x, y, z, interp_type='linear', hres=50000,
The horizontal resolution of the generated grid, given in the same units as the
x and y parameters. Default 50000.
minimum_neighbors: int
Minimum number of neighbors needed to perform barnes or cressman interpolation for a
Minimum number of neighbors needed to perform Barnes or Cressman interpolation for a
point. Default is 3.
gamma: float
Adjustable smoothing parameter for the barnes interpolation. Default 0.25.
kappa_star: float
Response parameter for barnes interpolation, specified nondimensionally
in terms of the Nyquist. Default 5.052
search_radius: float
A search radius to use for the barnes and cressman interpolation schemes.
If search_radius is not specified, it will default to the average spacing of
A search radius to use for the Barnes and Cressman interpolation schemes.
If search_radius is not specified, it will default to 5 times the average spacing of
observations.
rbf_func: str
Specifies which function to use for Rbf interpolation.
Expand Down
6 changes: 3 additions & 3 deletions src/metpy/interpolate/points.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,16 @@ def interpolate_to_points(points, values, xi, interp_type='linear', minimum_neig
2) "natural_neighbor", "barnes", or "cressman" from `metpy.interpolate`.
Default "linear".
minimum_neighbors: int
Minimum number of neighbors needed to perform barnes or cressman interpolation for a
Minimum number of neighbors needed to perform Barnes or Cressman interpolation for a
point. Default is 3.
gamma: float
Adjustable smoothing parameter for the barnes interpolation. Default 0.25.
kappa_star: float
Response parameter for barnes interpolation, specified nondimensionally
in terms of the Nyquist. Default 5.052
search_radius: float
A search radius to use for the barnes and cressman interpolation schemes.
If search_radius is not specified, it will default to the average spacing of
A search radius to use for the Barnes and Cressman interpolation schemes.
If search_radius is not specified, it will default to 5 times the average spacing of
observations.
rbf_func: str
Specifies which function to use for Rbf interpolation.
Expand Down

0 comments on commit bc4e869

Please sign in to comment.