Skip to content

Commit

Permalink
Replace set_crs by write_crs
Browse files Browse the repository at this point in the history
To solve some warnings
  • Loading branch information
rubencalje committed Sep 19, 2024
1 parent fa19c8a commit a5801e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nlmod/dims/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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

0 comments on commit a5801e9

Please sign in to comment.