We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f325155 commit cd6ed20Copy full SHA for cd6ed20
1 file changed
rioxarray/rioxarray.py
@@ -2,6 +2,7 @@
2
This module is an extension for xarray to provide rasterio capabilities
3
to xarray datasets/dataarrays.
4
"""
5
+
6
# pylint: disable=too-many-lines
7
import json
8
import math
@@ -375,6 +376,13 @@ def set_crs(
375
376
:obj:`xarray.Dataset` | :obj:`xarray.DataArray`:
377
Dataset with crs attribute.
378
379
+ warnings.warn(
380
+ "It is recommended to use `rio.write_crs()` instead. `rio.set_crs() will likely"
381
+ "be removed in a future release.",
382
+ DeprecationWarning,
383
+ stacklevel=2,
384
+ )
385
386
crs = crs_from_user_input(input_crs)
387
obj = self._get_obj(inplace=inplace)
388
obj.rio._crs = crs
0 commit comments