Skip to content

Commit

Permalink
vario: forward kwargs to standard_bins routine
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Jun 12, 2023
1 parent 97c30b4 commit b96f844
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/gstools/variogram/variogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def vario_estimate(
trend=None,
fit_normalizer=False,
geo_scale=RADIAN_SCALE,
**std_bins,
):
r"""
Estimates the empirical variogram.
Expand Down Expand Up @@ -230,6 +231,9 @@ def vario_estimate(
Can be set to :any:`EARTH_RADIUS` to have units in km or
:any:`DEGREE_SCALE` to have units in degree.
Default: :any:`RADIAN_SCALE`
**std_bins
Optional arguments that are forwarded to the :any:`standard_bins` routine
if no bins are given (bin_no, max_dist).
Returns
-------
Expand Down Expand Up @@ -341,7 +345,9 @@ def vario_estimate(
pos = pos[:, sampled_idx]
# create bining if not given
if bin_edges is None:
bin_edges = standard_bins(pos, dim, latlon, geo_scale=geo_scale)
bin_edges = standard_bins(
pos, dim, latlon, geo_scale=geo_scale, **std_bins
)
bin_center = (bin_edges[:-1] + bin_edges[1:]) / 2.0
if latlon:
# internally we always use radians
Expand Down

0 comments on commit b96f844

Please sign in to comment.