Skip to content

Commit

Permalink
modified days_over_precip_thresh example to use quantile.
Browse files Browse the repository at this point in the history
  • Loading branch information
huard committed Sep 13, 2019
1 parent 6f55ede commit e747009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xclim/indices/_multivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def days_over_precip_thresh(pr, per, thresh="1 mm/day", freq="YS"):
Example
-------
>>> p75 = percentile_doy(historical_pr, per=0.75)
>>> p75 = historical_pr.quantile(.75, dim="time", keep_attrs=True)
>>> r75p = days_over_precip_thresh(pr, p75)
"""
per = utils.convert_units_to(per, pr)
Expand Down

0 comments on commit e747009

Please sign in to comment.