You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CRS set on a Dataset using .rio.set_crs() does not persist to a DataArray obtained by selecting individual variables from the Dataset. Printing the CRS of the Dataset gives the previously set CRS, but printing the CRS of the DataArray gives None.
Expected Output
The CRS set on a Dataset should also apply to DataArrays of individual variables. Printing DataArray.rio.crs should give the set CRS, EPSG:4326 in this case.
Code Sample
Problem description
The CRS set on a
Dataset
using.rio.set_crs()
does not persist to aDataArray
obtained by selecting individual variables from theDataset
. Printing the CRS of theDataset
gives the previously set CRS, but printing the CRS of theDataArray
givesNone
.Expected Output
The CRS set on a
Dataset
should also apply toDataArrays
of individual variables. PrintingDataArray.rio.crs
should give the set CRS,EPSG:4326
in this case.Environment Information
Installation method
PyPi
The text was updated successfully, but these errors were encountered: