diff --git a/scripts/compute_climatology.py b/scripts/compute_climatology.py index a32f296..c0a3c4d 100644 --- a/scripts/compute_climatology.py +++ b/scripts/compute_climatology.py @@ -330,6 +330,10 @@ def _compute_seeps(kv): if stat not in ['seeps', 'mean']: for var in raw_vars: if stat == 'quantile': + if not quantiles: + raise ValueError( + 'Cannot compute stat `quantile` without specifying --quantiles.' + ) quantile_dim = xr.DataArray( quantiles, name='quantile', dims=['quantile'] )