diff --git a/HISTORY.rst b/HISTORY.rst index 8c129133..304a11c3 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,48 @@ History ======= +v0.8.0 (14 February 2025) +------------------------- + +This minor release introduces a new feature for temporal averaging with custom seasons +spanning the calendar year. It also includes the ability to detect and drop incomplete +seasons using the ``drop_incomplete_season`` config, which will eventually replace +``drop_incomplete_djf`` (previously limited to DJF seasons). Additionally, a bug in the +``regrid2`` regridder has been fixed, ensuring coordinates are now preserved correctly. + +Enhancements +~~~~~~~~~~~~ + +- Add support for custom seasons spanning calendar years by + `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/423 + +Bug Fixes +~~~~~~~~~ + +- Fixes preserving coordinates in regrid2 by `Jason Boutte`_ and + `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/716 +- Fix ``DeprecationWarning`` and ``FutureWarning`` found in test suite + by `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/724 + +Documentation +~~~~~~~~~~~~~ + +- Replace Miniconda with Miniforge by `Tom Vo`_ in + https://github.com/xCDAT/xcdat/pull/727 +- Update Miniconda references to Miniforge in HPC docs by `Tom Vo`_ + in https://github.com/xCDAT/xcdat/pull/731 + +DevOps +~~~~~~ + +- Update pre-commit hooks and add ci config by `Tom Vo`_ in + https://github.com/xCDAT/xcdat/pull/732 +- Fix ``DeprecationWarning`` and ``FutureWarning`` found in test suite + by `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/724 + +**Full Changelog**: https://github.com/xCDAT/xcdat/compare/v0.7.3...v0.8.0 + + v0.7.3 (06 November 2024) ------------------------- diff --git a/tbump.toml b/tbump.toml index 55fd2b86..80452bf2 100644 --- a/tbump.toml +++ b/tbump.toml @@ -2,7 +2,7 @@ github_url = "https://github.com/xCDAT/xcdat" [version] -current = "0.7.3" +current = "0.8.0" # Example of a semver regexp. # Make sure this matches current_version before diff --git a/xcdat/__init__.py b/xcdat/__init__.py index 7c649d55..71622b13 100644 --- a/xcdat/__init__.py +++ b/xcdat/__init__.py @@ -21,4 +21,4 @@ from xcdat.temporal import TemporalAccessor # noqa: F401 from xcdat.utils import compare_datasets # noqa: F401 -__version__ = "0.7.3" +__version__ = "0.8.0" diff --git a/xcdat/temporal.py b/xcdat/temporal.py index 095c9cd2..1576a2ba 100644 --- a/xcdat/temporal.py +++ b/xcdat/temporal.py @@ -1195,8 +1195,9 @@ def _shift_custom_season_years(self, ds: xr.Dataset) -> xr.Dataset: A season spans the calendar year if it includes "Jan" and "Jan" is not the first month. For example, for ``custom_seasons = ["Nov", "Dec", "Jan", "Feb", "Mar"]``: - - ["Nov", "Dec"] are from the previous year. - - ["Jan", "Feb", "Mar"] are from the current year. + + - ["Nov", "Dec"] are from the previous year. + - ["Jan", "Feb", "Mar"] are from the current year. Therefore, ["Nov", "Dec"] need to be shifted a year forward for correct grouping. @@ -1361,9 +1362,10 @@ def _drop_incomplete_seasons(self, ds: xr.Dataset) -> xr.Dataset: coordinates ["2000-11-16", "2000-12-16", "2001-01-16", "2001-02-16"] and we want to group seasons by "ND" ("Nov", "Dec") and "JFM" ("Jan", "Feb", "Mar"). - - ["2000-11-16", "2000-12-16"] is considered a complete "ND" season + + - ["2000-11-16", "2000-12-16"] is considered a complete "ND" season since both "Nov" and "Dec" are present. - - ["2001-01-16", "2001-02-16"] is considered an incomplete "JFM" + - ["2001-01-16", "2001-02-16"] is considered an incomplete "JFM" season because it only has "Jan" and "Feb". Therefore, these time coordinates are dropped.