From 1cade53fd9a48387ed38751efb45ddaf04e57bda Mon Sep 17 00:00:00 2001 From: Gregory Petrochenkov Date: Mon, 22 Jul 2024 21:21:18 -0700 Subject: [PATCH] Replace deprecated set_crs function --- src/gval/comparison/agreement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gval/comparison/agreement.py b/src/gval/comparison/agreement.py index 83cf47a0..21fa9dd8 100644 --- a/src/gval/comparison/agreement.py +++ b/src/gval/comparison/agreement.py @@ -131,7 +131,7 @@ def _manage_information_loss(agreement_map, crs, nodata, encode_nodata, dtype): """ # sets CRS that is lost with `xr.apply_ufunc` - agreement_map.rio.set_crs(crs, inplace=True) + agreement_map.rio.write_crs(crs, inplace=True) # setting agreement map nodata and encoded nodata if nodata is not None: