From 2539f17ee853d525ecf7bccd259fc9df361e0974 Mon Sep 17 00:00:00 2001 From: Daniel Wolfensberger Date: Wed, 28 May 2025 16:04:35 +0200 Subject: [PATCH 1/2] ENH: changed default behaviour in read_odim_grid_h5 to time_ref='end' --- pyart/aux_io/odim_h5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyart/aux_io/odim_h5.py b/pyart/aux_io/odim_h5.py index 602547633..3944b5fa6 100644 --- a/pyart/aux_io/odim_h5.py +++ b/pyart/aux_io/odim_h5.py @@ -259,7 +259,7 @@ def read_odim_grid_h5( nodata=np.nan, undetect=np.nan, use_file_conversion=True, - time_ref="start", + time_ref="end", **kwargs, ): """ From 71a351cb7c49ac091fb6b86cdf1fafc21201d8c3 Mon Sep 17 00:00:00 2001 From: Daniel Wolfensberger Date: Wed, 28 May 2025 16:24:42 +0200 Subject: [PATCH 2/2] FIX: fix test_odim_grid_h5 for new time_ref behaviour --- tests/aux_io/test_odim_grid_h5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/aux_io/test_odim_grid_h5.py b/tests/aux_io/test_odim_grid_h5.py index 0d6f6ac66..1cec9c12b 100644 --- a/tests/aux_io/test_odim_grid_h5.py +++ b/tests/aux_io/test_odim_grid_h5.py @@ -13,7 +13,7 @@ ##################################################### # read in the sample file and create a a grid object -grid = pyart.aux_io.read_odim_grid_h5(pyart.testing.ODIM_H5_GRID_FILE) +grid = pyart.aux_io.read_odim_grid_h5(pyart.testing.ODIM_H5_GRID_FILE, time_ref="start") # time attribute