diff --git a/CHANGELOG.md b/CHANGELOG.md index 20ed71e..149c3a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/). +## 0.4.2 (2026-01-28) + +New contributors: + - [@tdickinson29](https://github.com/tdickinson29) + +Fixed: + - When validating input with a source dataset, use the passed `time_dim` argument ([#62](https://github.com/xarray-contrib/xarray-regrid/pull/62)). + - Fixed issue with lon values being immutable, thanks @shenyulu ([#65](https://github.com/xarray-contrib/xarray-regrid/issues/65), [#66](https://github.com/xarray-contrib/xarray-regrid/pull/66)). + ## 0.4.1 (2025-04-08) Fixed: diff --git a/src/xarray_regrid/__init__.py b/src/xarray_regrid/__init__.py index 7b565fc..0dcaaec 100644 --- a/src/xarray_regrid/__init__.py +++ b/src/xarray_regrid/__init__.py @@ -9,4 +9,4 @@ "methods", ] -__version__ = "0.4.1" +__version__ = "0.4.2" diff --git a/src/xarray_regrid/utils.py b/src/xarray_regrid/utils.py index 88bbab5..6979f84 100644 --- a/src/xarray_regrid/utils.py +++ b/src/xarray_regrid/utils.py @@ -379,7 +379,7 @@ def format_lon( left_pad = int(np.ceil(np.max([left_pad, 0]))) right_pad = int(np.ceil(np.max([right_pad, 0]))) obj = obj.pad({lon_coord: (left_pad, right_pad)}, mode="wrap", keep_attrs=True) - lon_vals = obj.coords[lon_coord].values + lon_vals = obj.coords[lon_coord].values.copy() if left_pad: lon_vals[:left_pad] = source_lon.values[-left_pad:] - 360 if right_pad: