Skip to content

Commit ec3fb12

Browse files
Release v0.6.10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GignjoKpZADXywTf6pAMgj
1 parent 95c6d48 commit ec3fb12

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: cd
22
Title: Climate Departure Analysis from ERA5-Land Reanalysis
3-
Version: 0.6.9
3+
Version: 0.6.10
44
Date: 2026-10-16
55
Authors@R: c(
66
person("Allan", "Irvine", , "al@newgraphenvironment.com", role = c("aut", "cre"),

‎NEWS.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# cd 0.6.10 (2026-10-16)
2+
3+
* `cd_variables()` gives `swe_max` (annual peak SWE) the anomaly type `pct_normal` and unit `"%"`, as `swe` already had, so `cd_anomaly()` and `cd_trend()` report peak snowpack as percent of the baseline normal rather than mm, clamped at `cap_pct` (±200 by default) like the other `pct_normal` variables. On raw swe_max values, `cd_summary()` and `cd_plot_timeseries()` no longer show a unit, the same as for `swe`. A table saved under cd 0.6.9 or earlier keeps the `absolute`/`"mm"` it carries, because a carried type wins over the registry, and binding it to new output now errors (two types in one series); recompute it from the extracted series. The two regional articles' peak-SWE figures are now in percent, and their other numbers are unchanged. ([#139](https://github.com/NewGraphEnvironment/cd/issues/139), [#145](https://github.com/NewGraphEnvironment/cd/pull/145))
4+
* `cd_compare()`'s docs now call its default `window_a = 2015:2025` the recent 11 years rather than a decade. Behaviour is unchanged.
5+
16
# cd 0.6.9 (2026-10-16)
27

38
* `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

Comments
 (0)