* `cd_compare(method = "pct_change")` now returns `difference = NA`, with one warning naming the rows, for a variable whose values have no real zero or are already in percent: tmean, tmax, tmin, rh, snow_cover, snowfall_fraction and snowmelt_doy_50. A temperature's percent depends on where 0 °C falls, so a base mean of −0.57 °C read as +343 %. Callers that asked for a temperature percent now get `NA` and the warning; use `method = "mean_diff"` for those. The rule is a new logical column, `cd_variables()$pct_change`, not the anomaly type: `vpd`, `swe_max` and `snowmelt_rate_peak` are `absolute` and still take a percent. A series from outside the registry can carry its own `pct_change` column (see the input contract in `?cd_anomaly`); one measured in °C must carry `pct_change = FALSE`. ([#138](https://github.com/NewGraphEnvironment/cd/issues/138), [#143](https://github.com/NewGraphEnvironment/cd/pull/143))
0 commit comments