From a5801e926ff229bae0852d52dff3304c3150e8b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20Calj=C3=A9?= Date: Thu, 19 Sep 2024 09:26:50 +0200 Subject: [PATCH] Replace set_crs by write_crs To solve some warnings --- nlmod/dims/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nlmod/dims/base.py b/nlmod/dims/base.py index a53fa7c4..6c980741 100644 --- a/nlmod/dims/base.py +++ b/nlmod/dims/base.py @@ -387,7 +387,7 @@ def _get_structured_grid_ds( ) if crs is not None: - ds.rio.set_crs(crs) + ds.rio.write_crs(crs, inplace=True) return ds @@ -513,7 +513,7 @@ def _get_vertex_grid_ds( ds["icvert"].attrs["nodata"] = nodata if crs is not None: - ds.rio.set_crs(crs) + ds.rio.write_crs(crs, inplace=True) return ds @@ -707,5 +707,5 @@ def check_variable(var, shape): transport=transport, **kwargs, ) - ds.rio.set_crs(crs) + ds.rio.write_crs(crs, inplace=True) return ds