Skip to content

Commit

Permalink
Replace deprecated set_crs function
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryPetrochenkov-NOAA committed Jul 23, 2024
1 parent 19f8c1d commit 1cade53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gval/comparison/agreement.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1cade53

Please sign in to comment.